Commit 7651ce0f authored by 张彦钊's avatar 张彦钊

change test fil

parent 20d8e1bc
......@@ -154,6 +154,7 @@ def get_chapter(id):
tag_id.append('异常')
tag_name.append('异常')
# print(dataType)
print("w")
print(dateId)
# print(tag_id)
# print(tag_name)
......@@ -164,11 +165,27 @@ def get_chapter(id):
else:
pass
def get_opreaton():
db = pymysql.connect(host='172.16.30.143', port=3306, user='work', passwd='BJQaT9VzDcuPBqkd', db='zhengxing')
sql = "SELECT GROUP_CONCAT(distinct card_id) from api_feedoperatev2 " \
"where card_type = 19 and is_online = 1 and end_time >= '2019-08-13' and start_time <='2019-08-13'"
cursor = db.cursor()
cursor.execute(sql)
result = cursor.fetchone()
db.close()
l = result[0].split(",")
print(len(l))
print(l)
return l
if __name__ == '__main__':
get_d()
a = mysql(device_Android)
for i in a:
chapter_list = get_chapter(i)
# for i in a:
# chapter_list = get_chapter(i)
b = get_opreaton()
c = set(a)&set(b)
print(len(c))
print(c)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment