mns-common 1.4.3.6__py3-none-any.whl → 1.4.3.7__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.
- mns_common/api/em/gd/east_money_stock_gdfx_free_top_10_api.py +7 -1
- {mns_common-1.4.3.6.dist-info → mns_common-1.4.3.7.dist-info}/METADATA +1 -1
- {mns_common-1.4.3.6.dist-info → mns_common-1.4.3.7.dist-info}/RECORD +5 -5
- {mns_common-1.4.3.6.dist-info → mns_common-1.4.3.7.dist-info}/WHEEL +0 -0
- {mns_common-1.4.3.6.dist-info → mns_common-1.4.3.7.dist-info}/top_level.txt +0 -0
|
@@ -169,7 +169,7 @@ def sync_stock_gdfx_free_top_10(stock_gdfx_free_top_10_em_df, period, symbol, st
|
|
|
169
169
|
stock_gdfx_free_top_10_em_df['period'] = period
|
|
170
170
|
|
|
171
171
|
query_exist = {'symbol': symbol, 'period': period}
|
|
172
|
-
exist_flag = mongodb_util.exist_data_query(db_name_constant.
|
|
172
|
+
exist_flag = mongodb_util.exist_data_query(db_name_constant.STOCK_GDFX_FREE_TOP_10, query_exist)
|
|
173
173
|
# 不存在的时候更新创建时间
|
|
174
174
|
if bool(1 - exist_flag):
|
|
175
175
|
stock_gdfx_free_top_10_em_df['create_day'] = str_day
|
|
@@ -183,6 +183,12 @@ def sync_stock_gdfx_top_10(stock_gdfx_top_10_em_df, period, symbol, str_day):
|
|
|
183
183
|
stock_gdfx_top_10_em_df['symbol'] = symbol
|
|
184
184
|
stock_gdfx_top_10_em_df['_id'] = symbol + '_' + stock_gdfx_top_10_em_df.index + '_' + period
|
|
185
185
|
stock_gdfx_top_10_em_df['period'] = period
|
|
186
|
+
|
|
187
|
+
query_exist = {'symbol': symbol, 'period': period}
|
|
188
|
+
exist_flag = mongodb_util.exist_data_query(db_name_constant.STOCK_GDFX_TOP_10, query_exist)
|
|
189
|
+
# 不存在的时候更新创建时间
|
|
190
|
+
if bool(1 - exist_flag):
|
|
191
|
+
stock_gdfx_top_10_em_df['create_day'] = str_day
|
|
186
192
|
mongodb_util.save_mongo(stock_gdfx_top_10_em_df, db_name_constant.STOCK_GDFX_TOP_10)
|
|
187
193
|
|
|
188
194
|
|
|
@@ -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=
|
|
14
|
+
mns_common/api/em/gd/east_money_stock_gdfx_free_top_10_api.py,sha256=S5-x0TVY8PICHIBtm5YBRnzgDJDuF9T4R6HFvsySbn8,9927
|
|
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.
|
|
160
|
-
mns_common-1.4.3.
|
|
161
|
-
mns_common-1.4.3.
|
|
162
|
-
mns_common-1.4.3.
|
|
159
|
+
mns_common-1.4.3.7.dist-info/METADATA,sha256=MTg1tpKL0TNBhIvl3_bSjEHxvq0oYKV3-8HycwqhxyA,61
|
|
160
|
+
mns_common-1.4.3.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
161
|
+
mns_common-1.4.3.7.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
162
|
+
mns_common-1.4.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|