Commit 953723fe authored by lixiaofang's avatar lixiaofang

log

parent 1bf05dd1
......@@ -33,7 +33,7 @@ def get_data():
data = get_data()
print(data)
file = open("/data/log/cybertron/app/user_id.txt", "w")
file = open("/srv/apps/physical/vest/data/user_id.txt", "w")
if data:
for i in data:
......
......@@ -17,7 +17,7 @@ def index_first():
def get_cook():
data = open("batch_user_gen")
data = open("/srv/apps/physical/vest/data/vest_user_email.txt")
list = []
dicts = {}
......@@ -48,7 +48,7 @@ def get_cook():
dicts = get_cook()
with open("/data/log/cybertron/app/user_session.txt", 'w') as f:
with open("/srv/apps/physical/vest/data/user_session.txt", 'w') as f:
for key, value in dicts.items():
f.write(key)
f.write(",")
......
......@@ -59,7 +59,7 @@ if __name__ == "__main__":
now = datetime.datetime.now()
yes_time = now - datetime.timedelta(minutes=5)
user_data = open("/data/log/physical/app/user_id.txt", "r")
user_data = open("/srv/apps/physical/vest/data/user_id.txt", "r")
user_list = []
for i in user_data.readlines():
user_list.append(i)
......
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