qrpa 1.1.42__py3-none-any.whl → 1.1.45__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qrpa might be problematic. Click here for more details.

qrpa/shein_lib.py CHANGED
@@ -1111,8 +1111,17 @@ class SheinLib:
1111
1111
  dict_sku_sales = self.get_skc_actual_sales_dict(skc, start_date, end_date)
1112
1112
  dict_skc_trend = self.get_skc_trend(spu, skc, start_date, end_date)
1113
1113
 
1114
- # 只有当有趋势数据时才添加
1115
- if dict_skc_trend:
1114
+ # 检查这个 SKC 是否有任何 SKU 有销量(与 excel_data 保持一致)
1115
+ has_sales = False
1116
+ for sku_item in skc_item['skuList']:
1117
+ c30dSaleCnt = sku_item.get('c30dSaleCnt', 0)
1118
+ attr = sku_item.get('attr', '')
1119
+ if attr != '合计' and int(c30dSaleCnt) > 0:
1120
+ has_sales = True
1121
+ break
1122
+
1123
+ # 只有当有趋势数据且有销量时才添加到 excel_data2(与 excel_data 保持一致)
1124
+ if dict_skc_trend and has_sales:
1116
1125
  for stat_date, dict_item in dict_skc_trend.items():
1117
1126
 
1118
1127
  store_info = f'{self.store_username}\n{self.store_name}\n({shelfStatusName})\n{goods_level}\n{start_date}\n{end_date}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.1.42
3
+ Version: 1.1.45
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -11,7 +11,7 @@ qrpa/fun_web.py,sha256=9YuVy_wps9Ty_FBZ91W2R0iKgC2IViaJjHbyuUgngGs,11599
11
11
  qrpa/fun_win.py,sha256=vMdVh00dsnVz8Wey4Bq7J3RPZAY8B_bI_IKphOX1cE8,7836
12
12
  qrpa/shein_daily_report_model.py,sha256=O8s9qM45WZRoAgxUFRngvmBrc29v7Uf2ye7K8_bcSRg,12214
13
13
  qrpa/shein_excel.py,sha256=HHFWgEhMlKo3BnOrG9f27qwWCgv6MrwJaVZen4fJQk4,173948
14
- qrpa/shein_lib.py,sha256=W9puz2gjzi5bkv87L6iT7HdIUcM54D2ZfuzclAL7_6E,206361
14
+ qrpa/shein_lib.py,sha256=asYWUguIYWOjS2nK7yJvJG_H-ElnY-_Vg2DC0ncwfDY,206852
15
15
  qrpa/shein_mysql.py,sha256=MxbiRSH0gaTtW4ET7lVWRNY4NLOrMLGXO_4STptE1pU,4562
16
16
  qrpa/shein_sqlite.py,sha256=i4xwNf60eoG6wbWM1R2i5pDdVW1ZMy6uy9nB-c2WKzk,5554
17
17
  qrpa/shein_ziniao.py,sha256=YN7g6m84-vyDyePssfR41lqwaROz-km0-rJ8qY-jhy0,21416
@@ -27,7 +27,7 @@ qrpa/mysql_module/shein_ledger_model.py,sha256=KGKfGyzS00rbBZhiZhAzypwYPGs7OdfRL
27
27
  qrpa/mysql_module/shein_product_model.py,sha256=FGbcjsz-MHdAkonMAyE7om7N1a2_OttgHsm35oSBDNM,19171
28
28
  qrpa/mysql_module/shein_return_order_model.py,sha256=8xvKhOzpcJS5FHfyA33UednaqRNCyXo3qeXBzwTXeN8,25993
29
29
  qrpa/mysql_module/shein_store_model.py,sha256=RTj9cqexewHglHm1JNTe8iU0vJueHBLltdap-gvGxaY,20536
30
- qrpa-1.1.42.dist-info/METADATA,sha256=0-NfISNPsLB-dmC16zPTqMFSz5E4262xMXqt6pvVDYc,231
31
- qrpa-1.1.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
- qrpa-1.1.42.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
33
- qrpa-1.1.42.dist-info/RECORD,,
30
+ qrpa-1.1.45.dist-info/METADATA,sha256=O3VA_fU4EYltLTnuPUI-jl0nDuKs6ylfogzsmnQ7xnw,231
31
+ qrpa-1.1.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
+ qrpa-1.1.45.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
33
+ qrpa-1.1.45.dist-info/RECORD,,
File without changes