Commit 119825af authored by litaolemo's avatar litaolemo

update

parent d22aa05c
...@@ -198,11 +198,15 @@ WHERE spam_pv.device_id IS NULL ...@@ -198,11 +198,15 @@ WHERE spam_pv.device_id IS NULL
temp_count = 0 temp_count = 0
for demand in portratit_res: for demand in portratit_res:
if portratit_res[demand]: if portratit_res[demand]:
for tag in portratit_res[demand][0:3]: try:
if tag in portrait_dict[demand]: for tag in portratit_res[demand][0:3]:
portrait_dict[demand][tag] += 1 if tag in portrait_dict[demand]:
else: portrait_dict[demand][tag] += 1
portrait_dict[demand][tag] = 1 else:
portrait_dict[demand][tag] = 1
except Exception as e:
print("error ", e)
temp_count += 1 temp_count += 1
if not temp_count: if not temp_count:
count_not_has_portratit += 1 count_not_has_portratit += 1
......
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