Commit d0de0ee7 authored by lixiaofang's avatar lixiaofang

add

parent eeab3c2e
......@@ -17,7 +17,7 @@ def index_first():
return None
@shared_task(name="majia.tasks.get_cook")
# @shared_task(name="majia.tasks.get_cook")
def get_cook():
data = open("/srv/apps/physical/majia/majia_email.txt", "r")
list = []
......@@ -45,9 +45,11 @@ def get_cook():
logging.info("response.text :%s" % response.text)
dicts[i] = cook
with open("/srv/apps/physical/majia/user_session.txt", 'w') as f:
for key, value in dicts.items():
f.write(key)
f.write(",")
f.write(value)
f.write("\n")
dicts = get_cook()
with open("/srv/apps/physical/majia/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