qrpa 1.0.58__py3-none-any.whl → 1.0.59__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_excel.py CHANGED
@@ -38,13 +38,19 @@ class SheinExcel:
38
38
  summary_excel_data = [header] + summary_excel_data
39
39
  log(summary_excel_data)
40
40
  sheet_name = '新品转备货款明细'
41
- write_data(excel_path, sheet_name, summary_excel_data)
42
- self.format_week_ntb(excel_path, sheet_name)
41
+
42
+ # write_data(excel_path, sheet_name, summary_excel_data)
43
+ # self.format_week_ntb(excel_path, sheet_name)
44
+
45
+ batch_excel_operations(excel_path, [
46
+ (sheet_name, 'write', summary_excel_data),
47
+ (sheet_name, 'format', self.format_week_ntb),
48
+ ])
49
+
43
50
  dict_key = f'{self.config.auto_dir}/shein/dict/dict_store_bak_stat_{TimeUtils.today_date()}.json'
44
51
  write_dict_to_file(dict_key, dict_store_bak_stat)
45
52
 
46
- def format_week_ntb(self, excel_path, sheet_name):
47
- app, wb, sheet = open_excel(excel_path, sheet_name)
53
+ def format_week_ntb(self, sheet):
48
54
  beautify_title(sheet)
49
55
  format_to_date(sheet, ['统计日期'])
50
56
  format_to_percent(sheet, ['占比'])
@@ -53,8 +59,6 @@ class SheinExcel:
53
59
  autofit_column(sheet, ['店铺名称', '商品信息', '第4周SKC点击率/SKC转化率', '第4周SKC销量/SKC曝光'])
54
60
  add_borders(sheet)
55
61
  InsertImageV2(sheet, ['SKC图片'], 'shein', 120)
56
- wb.save()
57
- close_excel(app, wb)
58
62
 
59
63
  def dealFundsExcelFormat(self, sheet):
60
64
  col_a = find_column_by_data(sheet, 1, '店铺名称')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.58
3
+ Version: 1.0.59
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -10,7 +10,7 @@ qrpa/fun_file.py,sha256=yzjDV16WL5vRys7J4uQcNzIFkX4D5MAlSCwxcD-mwQo,11966
10
10
  qrpa/fun_web.py,sha256=F6cxwwOxB8twg2XK73oAvKla0FqpwDYJiM37CWmFwXo,6322
11
11
  qrpa/fun_win.py,sha256=-LnTeocdTt72NVH6VgLdpAT9_C5oV9okeudXG6CftMA,8034
12
12
  qrpa/shein_daily_report_model.py,sha256=H8oZmIN5Pyqe306W1_xuz87lOqLQ_LI5RjXbaxDkIzE,12589
13
- qrpa/shein_excel.py,sha256=WhICroRITi9pD_BhddRyk_SpB_d166Td58hzY7cJxDY,124294
13
+ qrpa/shein_excel.py,sha256=u6uMaYdZuL1z0EoFF2i0aAR8hgLSPh6Tn7xU4HBujfE,124350
14
14
  qrpa/shein_lib.py,sha256=iqHxngPl5fhopJ3ieNgMY3_Jb3_3MMMjgpmRrOp9BUU,119451
15
15
  qrpa/shein_mysql.py,sha256=MGPJsz13evsLygZWhmitpPzUswiTKZ91VFvr8KA0M40,750
16
16
  qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
@@ -23,7 +23,7 @@ qrpa/time_utils_example.py,sha256=shHOXKKF3QSzb0SHsNc34M61wEkkLuM30U9X1THKNS8,80
23
23
  qrpa/wxwork.py,sha256=gIytG19DZ5g7Tsl0-W3EbjfSnpIqZw-ua24gcB78YEg,11264
24
24
  qrpa/mysql_module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  qrpa/mysql_module/shein_return_order_model.py,sha256=Zt-bGOH_kCDbakW7uaTmqqo_qTT8v424yidcYSfWvWM,26562
26
- qrpa-1.0.58.dist-info/METADATA,sha256=u1J_SzBHwSfx6zNdsjaFF09ghhSrzW7K5jvT69eyfW8,231
27
- qrpa-1.0.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- qrpa-1.0.58.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
- qrpa-1.0.58.dist-info/RECORD,,
26
+ qrpa-1.0.59.dist-info/METADATA,sha256=DxLjut6HHYpnqqnQ6fqDWn1CfLqxnyp3CbhhnFe6DUk,231
27
+ qrpa-1.0.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ qrpa-1.0.59.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
+ qrpa-1.0.59.dist-info/RECORD,,
File without changes