|
@@ -226,6 +226,7 @@ def hlfx(data, stocks, pool_list):
|
|
|
m = m - 1
|
|
|
if m == 0:
|
|
|
df_day.loc[x, 'HL'] = 'H'
|
|
|
+ engine_stock.dispose()
|
|
|
|
|
|
|
|
|
|
|
@@ -288,6 +289,7 @@ def bridge(data):
|
|
|
cursor_pool.execute(sql)
|
|
|
db_pool.commit()
|
|
|
print(f'{dt.now()}写入新的results,hlfx_pool更新')
|
|
|
+ engine_hlfx_pool.dispose()
|
|
|
# hlfx(data, engine_stock, engine_hlfx)
|
|
|
pass
|
|
|
|
|
@@ -300,6 +302,7 @@ def prepare():
|
|
|
results = [x.replace('XSHG', 'SH').replace('XSHE', 'SZ') for x in results]
|
|
|
print('数据库读取,并转化后缀格式', len(results))
|
|
|
# print(results[0:10])
|
|
|
+ engine_hlfx_pool.dispose()
|
|
|
return results
|
|
|
|
|
|
|