← back to Kravet Fabric Fix 2026 04 23
__pycache__/fix_dwkk_misclassified.cpython-314.pyc
66 lines
+
x
YjX � �t � R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt Rt
]P P RR4 tR]
R2tRR.tR tR
tRRR
RRR/t]P( ! R]P* 4 t]P( ! R]P* 4 tRR ltR tR tRtRtRR ltR t]R8X d
]! 4 R# R# )a�
Fix DWKK products whose Shopify productType says wallcovering but the Kravet
master sheet classifies the item as MULTIPURPOSE / UPHOLSTERY / DRAPERY.
Per-row action (idempotent):
1. Pull live product from Shopify (productType, tags, title, status)
2. Target productType = 'Fabric'
3. Target tags = existing - {Wallcovering} + {Fabric, <TitleUse>}
4. Target title = strip stray "Wallpaper" / "Wallcovering" tokens
5. Skip the write if nothing differs
6. Mirror product_type='Fabric' back to kravet_catalog
Run:
python3 fix_dwkk_misclassified.py --limit 5 # pilot
python3 fix_dwkk_misclassified.py --limit 0 # full batch
python3 fix_dwkk_misclassified.py --dry # no writes
Nz)designer-laboratory-sandbox.myshopify.com�SHOPIFY_ADMIN_TOKEN� zhttps://z/admin/api/2024-10/graphql.json�sshzroot@45.61.58.125zY/Users/macstudio3/Projects/kravet-fabric-fix-2026-04-23/dwkk_misclassified_2026-04-23.csvzI/Users/macstudio3/Projects/kravet-fabric-fix-2026-04-23/fix_results.jsonl�MULTIPURPOSE�Multipurpose�
UPHOLSTERY�
Upholstery�DRAPERY�Draperyz$\s*\|\s*(wallpaper|wallcovering)s?\bz \b(wallpaper|wallcovering)s?\s*$c � � \ P ! R T RT;'