Commit 953723fe authored by lixiaofang's avatar lixiaofang

log

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