mns-scheduler 1.3.6.3__py3-none-any.whl → 1.3.6.5__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.

@@ -48,6 +48,11 @@ def sync_company_product_area_industry(symbol, date):
48
48
  for stock_one in real_time_quotes_all_stocks.itertuples():
49
49
  try:
50
50
  symbol = stock_one.symbol
51
+ query_exist = {"symbol": symbol}
52
+
53
+ if mongodb_util.exist_data_query(query_exist, db_name_constant.COMPANY_BUSINESS_INFO):
54
+ continue
55
+
51
56
  classification = stock_one.classification
52
57
  if classification in ['H', 'K']:
53
58
  market = '17'
@@ -63,6 +68,8 @@ def sync_company_product_area_industry(symbol, date):
63
68
  analysis_type = company_one['analysis_type']
64
69
  time_operate_index_item_list = company_one['time_operate_index_item_list']
65
70
  time_operate_index_item_df = pd.DataFrame(time_operate_index_item_list)
71
+ if data_frame_util.is_empty(time_operate_index_item_df):
72
+ continue
66
73
  time_operate_index_item_df['symbol'] = symbol
67
74
  time_operate_index_item_df['analysis_type'] = analysis_type
68
75
 
@@ -88,6 +95,16 @@ def handle_industry_area_product(time_operate_index_item_df, symbol):
88
95
  product_index_item_list = business_one.product_index_item_list
89
96
  for product_one in product_index_item_list:
90
97
  try:
98
+ # 初始化数据
99
+ income_amount = 0
100
+ income_percent = 0
101
+ cost_amount = 0
102
+ cost_percent = 0
103
+ gross_profit_amount = 0
104
+ gross_profit_percent = 0
105
+ gross_profit_rate_amount = 0
106
+ gross_profit_rate_percent = 0
107
+
91
108
  product_name = product_one['product_name']
92
109
  index_analysis_list = product_one['index_analysis_list']
93
110
  for index_one in index_analysis_list:
@@ -136,7 +153,7 @@ def handle_industry_area_product(time_operate_index_item_df, symbol):
136
153
 
137
154
 
138
155
  if __name__ == '__main__':
139
- sync_company_product_area_industry('002562')
156
+ sync_company_product_area_industry('002562', None)
140
157
  # sync_company_product_area_industry('002323')
141
158
  # sync_company_product_area_industry('300901')
142
159
  # sync_company_product_area_industry('603225')
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.3.6.3
3
+ Version: 1.3.6.5
4
4
 
@@ -5,7 +5,7 @@ mns_scheduler/company_info/announce/company_announce_sync_service.py,sha256=q8zY
5
5
  mns_scheduler/company_info/base/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
6
6
  mns_scheduler/company_info/base/sync_company_base_info_api.py,sha256=SIBQqUbAZXGCfAoYq78McvIZ6vrttlCfAlqhZl23z9U,21050
7
7
  mns_scheduler/company_info/base/sync_company_hold_info_api.py,sha256=ep9CthkoL_NNqkZgAeAdZqaf7_LNFDCrZonUjrT7w5o,1587
8
- mns_scheduler/company_info/base/sync_company_product_area_industry.py,sha256=2ADfN_DhVrOiIJOPUGiS38iwULJW2EUYJ_2JIKrhECE,6816
8
+ mns_scheduler/company_info/base/sync_company_product_area_industry.py,sha256=MpggFyDaoLdGamk_FnDXFNzKL5FnZuUd_xbRx_nQxFQ,7461
9
9
  mns_scheduler/company_info/clean/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
10
10
  mns_scheduler/company_info/clean/company_info_clean_api.py,sha256=P_-Nms6S1nVyqVOFKDT-Cq1RvriZV4IMz9eZCDF5Ovk,6104
11
11
  mns_scheduler/company_info/constant/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
@@ -165,7 +165,7 @@ mns_scheduler/zz_task/data_sync_task.py,sha256=XD8xkzH16L4DvQu2VScmsY4nnwHkj3dYP
165
165
  mns_scheduler/zz_task/compensation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  mns_scheduler/zz_task/compensation/compensate_task.py,sha256=Dyo66NcSnXZ-Cne4_v77BBb27SemAiuGXRLnvQ26X0E,6464
167
167
  mns_scheduler/zz_task/compensation/compensate_task_one_day.py,sha256=ize69Ocy1k5rf8Xckk1izcEJ361HBtWH1zoJrScBS28,5751
168
- mns_scheduler-1.3.6.3.dist-info/METADATA,sha256=u3zcrIkf-jgaQzjNkuXL1JISc49gW6WdDeq1dEyJFDk,64
169
- mns_scheduler-1.3.6.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
170
- mns_scheduler-1.3.6.3.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
171
- mns_scheduler-1.3.6.3.dist-info/RECORD,,
168
+ mns_scheduler-1.3.6.5.dist-info/METADATA,sha256=iPfFCThW8iF7nTSgWNaYfjOCcLu2UfKqDFuqfhfcszM,64
169
+ mns_scheduler-1.3.6.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
170
+ mns_scheduler-1.3.6.5.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
171
+ mns_scheduler-1.3.6.5.dist-info/RECORD,,