← back to Elitis Price 2026

exec/__pycache__/ws4_cleanup.cpython-314.pyc

33 lines

+
�Sj�����Rt^RIt^RIt^RIt^RIt]P
P
^R4^RIHt]P
PRR4t
RtRR
.tR.t
RtRtR	t]R
8Xd]!4]!R4R#R#)a�WS4 - post-reconciliation cleanup of 3 pre-existing Elitis defects (live).
1) Retitle scraped-sentence garbage titles on VP-963-01/-03 to real pattern 'Osorno'.
2) Archive the mongrel 'Raffia Ii Vp 1048 02' product that dodged the WS2 VP-1048
   archive and collides on SKU DWEL-142747 with the legit 'Frivole' VP-1036-44.
Idempotent (checks current state first). $0 (Shopify Admin API is free).
Steve-approved via AskUserQuestion 2026-07-11 (options A + B).N�lib)�gql�ledgerzws4_cleanup.csvz�mutation($input:ProductInput!){ productUpdate(input:$input){
  product{ id legacyResourceId title status handle } userErrors{ field message } } }c��RV2#)zgid://shopify/Product/�)�pids&�@/Users/macstudio3/Projects/elitis-price-2026/exec/ws4_cleanup.py�gidr	s��
#�C�5�)�)�c
��\PP\4;'d'\PP	\4^8�'*p\\RRR7;_uu_4p\P!V4pV'dVP.RO4VP\PP4PRR7WW#V.4RRR4R# +'giR#;i)��a�)�newline�seconds)�timespecN)�ts�action�
product_id�before�after�status)�os�path�exists�LEDGER�getsize�open�csv�writer�writerow�datetime�now�	isoformat)rrrrr�new�f�ws&&&&&   r�logr' s����w�w�~�~�f�%�E�E�"�'�'�/�/�&�*A�A�*E�
F�C�	
�f�c�2�	&�	&�!��J�J�q�M���
�J�J�R�S�	�
�
�H�%�%�)�)�+�5�5�y�5�I����8�	9�	
'�	&�	&�	&�s
�1A3C.�.C?	c���\EFwr\RR\V4/4R,pVR,V8Xd*\RVRVR24\	RWR,VR4K[\\
R	R\V4RV//4pVR
,R,pV'd9\RVR
V24\	RWR,VR\
V4,4K�\RVR
VR,R,:RV:24\	RWR,VR4EK	\F�wr\RR\V4/4R,pVR,R8Xd \RVR24\	RWRR4KP\\
R	R\V4RR//4pVR
,R,pV'd2\RVR
V24\	RWRR\
V4,4K�\RVR
V:RVR,R24\	RWRR4K�	R#)z*query($id:ID!){ product(id:$id){ title } }�id�product�titlez	  [skip] z
 already '�'�retitle�SKIP�input�
productUpdate�
userErrorsz  [ERR] z: zERR:z  [ok] retitle :N�(Nz -> �OKz1query($id:ID!){ product(id:$id){ status title } }r�ARCHIVEDz already ARCHIVED�archivez  [ok] archive z (z
 -> ARCHIVED)N)�RETITLErr	�printr'�M_UPD�str�ARCHIVE)r�newtitle�cur�r�uer+s      r�runr?*s��� ��
���>��s�3�x�@P�Q�R[�\���w�<�8�#��I�c�U�*�X�J�a�8�9��	�3�G��h��?�����$��C��'�8�!D�E�F��
��
��
-��
��H�S�E��B�4�(�)��	�3�G��h���R��8H�I��
���u�B�s�7�|�C�'8�&;�4��|�L�M��I�s��L�(�D�9�!��
���E��c�RU�h�GW�X�Yb�c���x�=�J�&��I�c�U�"3�4�5��	�3�z�6�:�����$��C��(�J�!G�H�I��
��
��
-��
��H�S�E��B�4�(�)��	�3�z�6�C��G�3C�D��
���u�B�u�i�r�#�h�-��
�N�O��I�s�:�t�4�r
�__main__z
WS4 cleanup done.)l3hKTzOsorno 01 | Elitis)l3}7VzOsorno 03 | Elitis)l3�TzRaffia Ii Vp 1048 02 | Elitis)�__doc__�sysrrr!r�insert�shopifyr�joinrr8r6r:r	r'r?�__name__r7rr
r�<module>rGs���B��	�
��������5���	�����h� 1�	2��	X��*�)���
5���
*�9�5�>�z���E�	�
� �r