Commit 81ffe9b3 authored by lixiaofang's avatar lixiaofang

add

parent 3a4e806b
......@@ -2,6 +2,8 @@ import pymysql
import traceback
import logging
from vest.request.auto_request import host, user, db, passwd
from libs.cache import redis_client
import json
def get_data():
......@@ -34,12 +36,14 @@ def get_data():
def auto_user_id():
try:
data = get_data()
print(data)
file = open("/srv/apps/physical/vest/data/user_id.txt", "w")
# print(data)
# file = open("/srv/apps/physical/vest/data/user_id.txt", "w")
#
# if data:
# for i in data:
# file.write(str(i[0]))
# file.write("\n")
redis_client.set("get_user_id_data", data)
if data:
for i in data:
file.write(str(i[0]))
file.write("\n")
except:
logging.error("index_first:%s" % traceback.format_exc())
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