提交 93d43561 作者: LiJunMing

9/21

上级 95091024
...@@ -389,18 +389,18 @@ def yahooCode_task(): ...@@ -389,18 +389,18 @@ def yahooCode_task():
#新三板 #新三板
def NQEnterprise(): def NQEnterprise():
cnx, cursor = connectSql() cnx_, cursor_ = cnn11()
nq_query = "select gpdm from NQEnterprise where QCCID is not null " nq_query = "SELECT social_credit_code FROM sys_base_enterprise_ipo WHERE securities_type='新三板' and listed='1'"
cursor.execute(nq_query) cursor_.execute(nq_query)
nq_result = cursor.fetchall() nq_result = cursor_.fetchall()
nq_social_list = [item[0] for item in nq_result] nq_social_list = [item[0] for item in nq_result]
for item in nq_social_list: for item in nq_social_list:
# r.rpush('NQEnterprise:nq_Ipo', item) # r.rpush('NQEnterprise:nq_Ipo', item)
r.rpush('NQEnterprise:nq_finance',item) r.rpush('NQEnterprise:nq_finance',item)
# r.rpush('NQEnterprise:nq_notice',item) # r.rpush('NQEnterprise:nq_notice',item)
closeSql(cnx, cursor) closeSql(cnx_, cursor_)
def omeng(): def omeng():
cnx, cursor = connectSql() cnx, cursor = connectSql()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论