Commit ec448d6a authored by litaolemo's avatar litaolemo

update

parent cd4ddfbe
......@@ -277,18 +277,18 @@ WHERE spam_pv.device_id IS NULL
try:
for tag in portratit_res[demand][0:3]:
#temp
if tag == "美白针" or tag == "瘦脸针":
print(tag,res.device_id)
for event_cn,projects in get_user_event_from_mysql(res.device_id):
project_list = projects.split(",")
for project in project_list:
if project not in event_dict:
event_dict[project] = {}
if event_dict[project].get(event_cn):
event_dict[project][event_cn] += 1
else:
event_dict[project][event_cn] = 1
# if tag == "美白针" or tag == "瘦脸针":
# print(tag,res.device_id)
# for event_cn,projects in get_user_event_from_mysql(res.device_id):
#
# project_list = projects.split(",")
# for project in project_list:
# if project not in event_dict:
# event_dict[project] = {}
# if event_dict[project].get(event_cn):
# event_dict[project][event_cn] += 1
# else:
# event_dict[project][event_cn] = 1
if tag in portrait_dict[demand]:
......
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