← back to Hollywood Price 2026

__pycache__/build_plan_correct.cpython-314.pyc

41 lines

+
�Sj�	����Rt^RIt^RIt^RIt^RIt^RIt]PP^R4^RIH	t	]PPR4tRtRt
]R8Xd
]
!4R#R#)aYBuild the CORRECT Hollywood pricing plan.
Join: Shopify sku-base (variant sku minus -sample) == staged `mfr`  (verified ==
manufacturer_sku == staged col3; staged hw matches live Momentum x1.448).
Price = staged `hw`. Unit = staged `unit`. NEVER use the DWHW2 dw_sku (garbage).
Sellable SKU = sku-base + unit-suffix. Output plan_correct.csv. $0.N�lib)�gqlz~/Projects/hollywood-importzplan_correct.csvc��\P!\\R,44Uu/uF<qP	R4'gK\VR,4P
4VbK>	ppRp.RrC\VRRRV/4pVR,qcVR,Uu.uFqwR	,NK
	up,
pVR
,R,'gMVR
,R,pKhR
p.p	VF�p
V!V
4pV'dW�9dKW,pVP	R4p
V
'd\V
4^8:dKNT	PRV
R,RV
R,RV
R,RV
R,RTRVP	R4;'gRP4RV
RVP	R4RVP	R4RVP	R4/
4K�	\\RRR7;_uu_4p\P!V\V	^,P44R7q�P!4VP#V	4RRR4\%R\'V	4R \24\%R!\)\*P,!R"V	4444\/R#V	44p\%R$V^,R%
R&VR(,R%
R'V\'V4^,,R%
24R#uupiuupi +'giL�;i))z/mom-col3-staged.json�mfrz�query($q:String!,$after:String){ products(first:200, after:$after, query:$q){
      pageInfo{hasNextPage endCursor}
      edges{ node{ id legacyResourceId handle title
        variants(first:5){ edges{ node{ sku } } } } } } }N�qz>vendor:'Hollywood Wallcoverings' status:active tag:Needs-Price�after�products�edges�node�pageInfo�hasNextPage�	endCursorc���VR,R,FSpVR,R,;'gRpVP4PR4'gKDVR\R4)u#	R#)�variantsr	r
�sku�z-sampleN)�lower�endswith�len)�n�e�sks&  �build_plan_correct.py�base�main.<locals>.base!s^���:��w�'�'�A��F�)�E�"�(�(�b�B��x�x�z�"�"�9�-�-��*�C�	�N�?�+�+�(���hw�gid�id�
product_id�legacyResourceId�handle�title�sku_base�unitr�list�mom_pattern�
momPattern�col3�w)�newline)�
fieldnameszPLAN_CORRECT: z priceable -> z  unit dist:c3�2"�TF
qR,x�K	R#5i)r$N���.0�rs& r�	<genexpr>�main.<locals>.<genexpr>9s���2K�d��V�9�9�d�s�c3�F"�TFp\VR,4x�K	R#5i)rN)�floatr.s& rr1r2:s���.��A��q��w����s�!z
  hw range: $z.2fz-$z	 median $�����)�json�load�open�HI�get�str�striprr4�append�upper�OUT�csv�
DictWriterr%�keys�writeheader�	writerows�printr�dict�collections�Counter�sorted)r0�staged�Q�prods�cur�d�prr�rowsr�sb�str�fr)�hwss                 r�mainrUsy��04�	�	�$�r�D[�?[�:\�0]�
n�0]�1�af�af�gl�am�&�c�!�E�(�m�!�!�#�Q�&�0]�F�
n�	=�A��T�3�
���C�Y�[b�dg�h�i��
�j�M���'�
�$C�
�1�v�Y�Y�
�$C�C�5���}�]�+�+���
�m�K�(����D�
��
�!�W���R�%��
�Z��
�V�V�D�\���U�2�Y�!�^������1�T�7�L�!�,>�*?��1�X�;��Q�w�Z��R��"�&�&��.�:N�:N�B�9U�9U�9W��"�f�b�f�f�V�n�m�R�V�V�L�=Q�SY�[]�[a�[a�bh�[i�
�	��
�c�3��	#�	#�q��N�N�1��d�1�g�l�l�n�)=�>��
�
��QR�Q\�Q\�]a�Qb�
$�	�N�3�t�9�+�^�C�5�
9�:�	�.�$�{�2�2�2K�d�2K�K�L�M�
�.��.�
.�C�	�M�#�a�&���R��B���}�I�c�#�c�(�A�+�>N�s�=S�
T�U��Oo��%D�4
$�	#�s�K#�
%K#�K(�&AK-�-K=	�__main__)�__doc__�sys�osr6r@rG�path�insert�shopifyr�
expanduserr9r?rU�__name__r-rr�<module>r_sf��G�
�	��
��������5����W�W���5�6����(V�V�z���F�r