mns-scheduler 1.1.4.7__py3-none-any.whl → 1.1.4.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.

@@ -162,8 +162,7 @@ def sync_all_interactive_questions(symbol_list):
162
162
  stock_irm_cninfo_df.loc[
163
163
  stock_irm_cninfo_df['question_time'].str.contains('分钟前', na=False), 'answer_time'] = str_now_date
164
164
  stock_irm_cninfo_df['valid'] = True
165
- stock_irm_cninfo_df = stock_irm_cninfo_df.dropna(subset=['answer_content'])
166
- stock_irm_cninfo_df = stock_irm_cninfo_df[stock_irm_cninfo_df['answer_content'] != '']
165
+ stock_irm_cninfo_df['answer_content'].fillna('')
167
166
  # 保存新增数据
168
167
  save_new_data(stock_irm_cninfo_df)
169
168
  logger.info("完成同步互动回答到:{}", stock_one.symbol)
@@ -173,13 +172,12 @@ def sync_all_interactive_questions(symbol_list):
173
172
  logger.error("同步互动问题出现异常:{},{}", stock_one.symbol, e)
174
173
 
175
174
 
176
-
177
175
  def save_new_data(stock_irm_cninfo_df):
178
176
  if data_frame_util.is_empty(stock_irm_cninfo_df):
179
177
  return None
180
178
  else:
181
179
  irm_id_list = list(stock_irm_cninfo_df['_id'])
182
- query = {"_id": {"$in": irm_id_list}}
180
+ query = {"_id": {"$in": irm_id_list}, 'answer_content': {"$ne": ''}}
183
181
  query_field = {"_id": 1}
184
182
 
185
183
  exist_df = mongodb_util.find_query_data_choose_field(db_name_constant.STOCK_INTERACTIVE_QUESTION, query,
@@ -189,7 +187,7 @@ def save_new_data(stock_irm_cninfo_df):
189
187
  else:
190
188
  new_df = stock_irm_cninfo_df.loc[~(stock_irm_cninfo_df['_id'].isin(list(exist_df['_id'])))]
191
189
  if data_frame_util.is_not_empty(new_df):
192
- mongodb_util.insert_mongo(new_df, db_name_constant.STOCK_INTERACTIVE_QUESTION)
190
+ mongodb_util.save_mongo(new_df, db_name_constant.STOCK_INTERACTIVE_QUESTION)
193
191
 
194
192
 
195
193
  if __name__ == '__main__':
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-scheduler
3
- Version: 1.1.4.7
3
+ Version: 1.1.4.9
4
4
 
@@ -43,7 +43,7 @@ mns_scheduler/finance/sync_financial_report_service_api.py,sha256=YSSVt5R1EqYbW8
43
43
  mns_scheduler/hk/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
44
44
  mns_scheduler/hk/hk_company_info_sync_service_api.py,sha256=S5h55Igzumlzfikc0Dez47aL_pD2JkYoZVqVvjeUg2E,2257
45
45
  mns_scheduler/irm/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
46
- mns_scheduler/irm/stock_irm_cninfo_service.py,sha256=oZUmC9h3jANUmvv_vrURcclPm2rA0A1rIn-T2PlTAtw,9660
46
+ mns_scheduler/irm/stock_irm_cninfo_service.py,sha256=mTwD7ZYKk9XlA3KD1SQWz2A8-OKAH2mdUl2A9Pzwrz8,9560
47
47
  mns_scheduler/irm/api/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
48
48
  mns_scheduler/irm/api/sh_stock_sns_sse_info_api.py,sha256=iXy_FukyyQ_ZcU1WcT_DSpZ8-aEtDrTEcyiiIlFzXho,4931
49
49
  mns_scheduler/irm/api/sz_stock_sns_sse_info_api.py,sha256=6iZpdQ1pARchL3kV-oEVPDc9Ja0ciQBjBntVmxseeNE,6199
@@ -125,7 +125,7 @@ mns_scheduler/zt/zt_pool/em_zt_pool_sync_api.py,sha256=x3-NCugHoY5IuX2s1UOUMl8DZ
125
125
  mns_scheduler/zt/zt_pool/ths_zt_pool_sync_api.py,sha256=LJVGqJyLn04oC-Xp59RVE1IOz7lx6ao78bw9l67sKBM,10382
126
126
  mns_scheduler/zz_task/__init__.py,sha256=QWBdZwBCvQw8aS4hnL9_pg3U3ZiNLUXzlImyy9WhUcI,163
127
127
  mns_scheduler/zz_task/data_sync_task.py,sha256=65p4Phow5VHufhdHYD716Zy90u8bC6ZU36a0ratd7nA,19628
128
- mns_scheduler-1.1.4.7.dist-info/METADATA,sha256=KiHaGQP3Fb0cjdMaQJHpMk_uHenkofth0uulJESyV8M,64
129
- mns_scheduler-1.1.4.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
- mns_scheduler-1.1.4.7.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
131
- mns_scheduler-1.1.4.7.dist-info/RECORD,,
128
+ mns_scheduler-1.1.4.9.dist-info/METADATA,sha256=lEvOSr3_Jj2Ov4RaozAJ2eo0Ep8osewbY83VBf7o0sE,64
129
+ mns_scheduler-1.1.4.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
130
+ mns_scheduler-1.1.4.9.dist-info/top_level.txt,sha256=PXQDFBGR1pWmsUbH5yiLAh71P5HZODTRED0zJ8CCgOc,14
131
+ mns_scheduler-1.1.4.9.dist-info/RECORD,,