mns-scheduler 1.3.5.7__py3-none-any.whl → 1.3.5.9__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 mns-scheduler might be problematic. Click here for more details.

@@ -37,7 +37,7 @@ def sync_financial_report():
37
37
  sync_time = now_date.strftime('%Y-%m-%d %H:%M:%S')
38
38
 
39
39
  if now_month in [1, 2, 3, 4]:
40
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year - 1) + '年报')
40
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year - 1) + '年报', None)
41
41
 
42
42
  # 年报
43
43
  period = 4
@@ -47,7 +47,7 @@ def sync_financial_report():
47
47
 
48
48
  # 一季报
49
49
  if now_month == 4:
50
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '一季报')
50
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '一季报', None)
51
51
 
52
52
  period = 1
53
53
  period_time = str(now_year) + "-03-31 00:00:00"
@@ -58,7 +58,7 @@ def sync_financial_report():
58
58
 
59
59
  # 二季报
60
60
  elif now_month in [7, 8]:
61
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '中报')
61
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '中报', None)
62
62
 
63
63
  period = 2
64
64
  period_time = str(now_year) + "-06-30 00:00:00"
@@ -69,7 +69,7 @@ def sync_financial_report():
69
69
 
70
70
  # 三季报
71
71
  elif now_month == 10:
72
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '三季报')
72
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '三季报', None)
73
73
 
74
74
  period = 3
75
75
  period_time = str(now_year) + "-09-30 00:00:00"
@@ -78,8 +78,8 @@ def sync_financial_report():
78
78
 
79
79
  elif now_month == 5:
80
80
 
81
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year - 1) + '年报')
82
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '一季报')
81
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year - 1) + '年报', None)
82
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '一季报', None)
83
83
 
84
84
  # 补偿年报和一季度,出不了报告的
85
85
  miss_period_04 = 4
@@ -94,7 +94,7 @@ def sync_financial_report():
94
94
  sync_em_asset_liability_report(period_time_01, sync_time, period_01)
95
95
 
96
96
  elif now_month == 9:
97
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '中报')
97
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '中报', None)
98
98
 
99
99
  # 补偿二季度
100
100
  period_02 = 2
@@ -103,7 +103,7 @@ def sync_financial_report():
103
103
  sync_em_asset_liability_report(period_time_02, sync_time, period_02)
104
104
 
105
105
  elif now_month in [11, 12]:
106
- sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '三季报')
106
+ sync_xue_qiu_fiance_data.sync_xue_qiu_very_period_report(str(now_year) + '三季报', None)
107
107
 
108
108
  # 补偿三季度
109
109
  period_03 = 3
@@ -17,7 +17,6 @@ import mns_common.utils.data_frame_util as data_frame_util
17
17
  import mns_common.component.cookie.cookie_info_service as cookie_info_service
18
18
  from datetime import datetime
19
19
 
20
-
21
20
  mongodb_util_27017 = MongodbUtil('27017')
22
21
 
23
22
 
@@ -117,7 +116,7 @@ def save_one_symbol_data(stock_one, report_type_list, xue_qiu_cookie, save_tag,
117
116
  result_df.loc[result_df['report_name'].str.contains('一季报'), 'period'] = 1
118
117
  result_df.loc[result_df['report_name'].str.contains('中报'), 'period'] = 2
119
118
  result_df.loc[result_df['report_name'].str.contains('三季报'), 'period'] = 3
120
-
119
+ result_df['year'] = result_df['report_name'].str[:4]
121
120
  if save_tag:
122
121
  mongodb_util_27017.save_mongo(result_df, col_name)
123
122
  else:
@@ -132,8 +131,10 @@ def save_one_symbol_data(stock_one, report_type_list, xue_qiu_cookie, save_tag,
132
131
  return fail_list
133
132
 
134
133
 
135
- def sync_xue_qiu_very_period_report(report_name):
134
+ def sync_xue_qiu_very_period_report(report_name, symbol):
136
135
  em_a_stock_info_df = mongodb_util_27017.find_all_data('em_a_stock_info')
136
+ if symbol is not None:
137
+ em_a_stock_info_df = em_a_stock_info_df.loc[em_a_stock_info_df['symbol'] == symbol]
137
138
  em_a_stock_info_df = common_service_fun_api.add_pre_prefix(em_a_stock_info_df)
138
139
  # 或等效写法 df['A'].str[0:6]
139
140
 
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.3.5.7
3
+ Version: 1.3.5.9
4
4
 
@@ -50,14 +50,14 @@ mns_scheduler/debt/kzz_bond_info_sync.py,sha256=FOefhRDqSN1YRqY6drCN3p6PgzVD_isW
50
50
  mns_scheduler/dt/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
51
51
  mns_scheduler/dt/stock_dt_pool_sync.py,sha256=5ivRUOnFtOapZniwTbujf1lVq3y4btm2Cmd5R6JJAVo,3466
52
52
  mns_scheduler/finance/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
53
- mns_scheduler/finance/sync_financial_report_service_task.py,sha256=q2J6pKEzDCa8aHqQXqFNvJeFnkfX6_0SQj50VEjp2Yw,8819
53
+ mns_scheduler/finance/sync_financial_report_service_task.py,sha256=ROJ4aOtv3lRqMIhCyy9uV54Of5Q-LhzvvJslu33Jp08,8867
54
54
  mns_scheduler/finance/em/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
55
55
  mns_scheduler/finance/em/em_financial_asset_liability_sync_service_api.py,sha256=1e5VIdQV4U19CBJP0Ow_fp3WvfUF8sPQQQXG8zv5qjo,19420
56
56
  mns_scheduler/finance/em/em_financial_profit_sync_service_api.py,sha256=j5xnzcSthy6qc5dYr52DnxqN2T4zf_rldlRWbLyz90I,14550
57
57
  mns_scheduler/finance/em/finance_common_api.py,sha256=rqsVJZEklJjvM9ogl-9GQaWxyh1LE6IKoTkQkN5cBvE,2453
58
58
  mns_scheduler/finance/xue_qiu/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
59
59
  mns_scheduler/finance/xue_qiu/down_load_xueqiu_report_api.py,sha256=r_RtfM2SBzQcvO1MH8Dt8mOXg2tbZOLz0sNwqne9jFs,2769
60
- mns_scheduler/finance/xue_qiu/sync_xue_qiu_fiance_data.py,sha256=5PuzujApp5CZceHf7de9G-39jqY4qtEix3Qjhf5K_CM,7084
60
+ mns_scheduler/finance/xue_qiu/sync_xue_qiu_fiance_data.py,sha256=SqJhq57BHyz0pJbLLv1fqfmhtapxQFT_OdNNL7v4wgk,7275
61
61
  mns_scheduler/hk/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
62
62
  mns_scheduler/hk/hk_company_info_sync_service_api.py,sha256=MGIKodN9oXaY0iwtdsrg4wwHXkMglFvY8eyeTpbas6k,3724
63
63
  mns_scheduler/hk/hk_industry_info_sync_service_api.py,sha256=WdCTaBi4GDicWfmiYbI-byBCXZwknkYZHk6y2IloMys,2275
@@ -164,7 +164,7 @@ mns_scheduler/zz_task/data_sync_task.py,sha256=ar3l9eBe3z5WmdAMNqiaQJrIPUpUR1Kbw
164
164
  mns_scheduler/zz_task/compensation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
165
  mns_scheduler/zz_task/compensation/compensate_task.py,sha256=Dyo66NcSnXZ-Cne4_v77BBb27SemAiuGXRLnvQ26X0E,6464
166
166
  mns_scheduler/zz_task/compensation/compensate_task_one_day.py,sha256=ize69Ocy1k5rf8Xckk1izcEJ361HBtWH1zoJrScBS28,5751
167
- mns_scheduler-1.3.5.7.dist-info/METADATA,sha256=pePM9lEQn3kMbT-tcZz0TvbyC5IxJ5H-o7yZNeJp0bY,64
168
- mns_scheduler-1.3.5.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
169
- mns_scheduler-1.3.5.7.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
170
- mns_scheduler-1.3.5.7.dist-info/RECORD,,
167
+ mns_scheduler-1.3.5.9.dist-info/METADATA,sha256=mPKw0X6JXUueurtWZ5UJ6GcM13Xvtwyza9vD1RlB9CU,64
168
+ mns_scheduler-1.3.5.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
169
+ mns_scheduler-1.3.5.9.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
170
+ mns_scheduler-1.3.5.9.dist-info/RECORD,,