Commit ec448d6a authored by litaolemo's avatar litaolemo

update

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