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

@@ -38,6 +38,8 @@ def get_stock_gdfx_free_top_10_em_api(str_day, symbol):
38
38
  return None
39
39
  stock_gdfx_free_top_10_em_df = stock_gdfx_free_top_10_em_df.fillna(0)
40
40
  stock_gdfx_free_top_10_em_df.index = stock_gdfx_free_top_10_em_df.index.astype(str)
41
+ stock_gdfx_free_top_10_em_df.drop_duplicates('shareholder_name', keep='last', inplace=True)
42
+
41
43
  return stock_gdfx_free_top_10_em_df
42
44
 
43
45
 
@@ -159,10 +161,18 @@ def get_stock_gdfx_free_top_10_em(str_day, symbol):
159
161
  # 保存10大流通股东
160
162
  def sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_em_df, period, symbol, str_day):
161
163
  if stock_gdfx_free_top_10_em_df is not None and stock_gdfx_free_top_10_em_df.shape[0] > 0:
164
+ # 更新日期
162
165
  stock_gdfx_free_top_10_em_df['str_day'] = str_day
166
+
163
167
  stock_gdfx_free_top_10_em_df['symbol'] = symbol
164
168
  stock_gdfx_free_top_10_em_df['_id'] = symbol + '_' + stock_gdfx_free_top_10_em_df.index + '_' + period
165
169
  stock_gdfx_free_top_10_em_df['period'] = period
170
+
171
+ query_exist = {'symbol': symbol, 'period': period}
172
+ exist_flag = mongodb_util.exist_data_query(db_name_constant.STOCK_GDFX_TOP_10, query_exist)
173
+ # 不存在的时候更新创建时间
174
+ if bool(1 - exist_flag):
175
+ stock_gdfx_free_top_10_em_df['create_day'] = str_day
166
176
  mongodb_util.save_mongo(stock_gdfx_free_top_10_em_df, db_name_constant.STOCK_GDFX_FREE_TOP_10)
167
177
 
168
178
 
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns-common
3
- Version: 1.4.3.4
3
+ Version: 1.4.3.6
4
4
 
@@ -11,7 +11,7 @@ mns_common/api/em/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0
11
11
  mns_common/api/em/concept/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
12
12
  mns_common/api/em/concept/em_concept_index_api.py,sha256=PP87ES8a_y0o3SKLzBsPrc7DCPI3MBCD-4SmoUUirl0,8285
13
13
  mns_common/api/em/gd/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
14
- mns_common/api/em/gd/east_money_stock_gdfx_free_top_10_api.py,sha256=hitzJuMwy5I69UIE2Aj8zEtMMPOjeNo0S1A4t7Pm79E,9180
14
+ mns_common/api/em/gd/east_money_stock_gdfx_free_top_10_api.py,sha256=KMQUEDpK7Kl9omQjALaCqtyURFDI80kjCiEc7_cjfIY,9616
15
15
  mns_common/api/em/real_time/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
16
16
  mns_common/api/em/real_time/east_money_debt_api.py,sha256=jMvMZtlrDfExl_4jZ1hepHX8rUoeVLoLSOIhRBjkUGk,14753
17
17
  mns_common/api/em/real_time/east_money_etf_api.py,sha256=tCyH4fNx-KfVRFuNGkgM8d_xkvR0oAfr8T3e7_XrjTM,14414
@@ -156,7 +156,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
156
156
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
157
157
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
158
158
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
159
- mns_common-1.4.3.4.dist-info/METADATA,sha256=i_Alytg-h5H9KczgIUopEJWUe2mHVSkkgj0MxsgRuv4,61
160
- mns_common-1.4.3.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
161
- mns_common-1.4.3.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
162
- mns_common-1.4.3.4.dist-info/RECORD,,
159
+ mns_common-1.4.3.6.dist-info/METADATA,sha256=_oNeRKMV4TSiXR_G-bnPZTnVgJf3AD0fplShoLn-tJA,61
160
+ mns_common-1.4.3.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
161
+ mns_common-1.4.3.6.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
162
+ mns_common-1.4.3.6.dist-info/RECORD,,