Commit 5594498d authored by lixiaofang's avatar lixiaofang

add

parent 54cee0f7
......@@ -15,7 +15,7 @@ def index_first():
return None
@shared_task
def get_cook():
data = open("majia_email")
list = []
......@@ -43,14 +43,9 @@ def get_cook():
logging.info("response.text :%s" % response.text)
dicts[i] = cook
return dicts
dicts = get_cook()
with open("user_session.txt", 'w') as f:
for key, value in dicts.items():
f.write(key)
f.write(",")
f.write(value)
f.write("\n")
with open("user_session.txt", 'w') as f:
for key, value in dicts.items():
f.write(key)
f.write(",")
f.write(value)
f.write("\n")
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