Commit 4b5e4d79 authored by litaolemo's avatar litaolemo

update

parent c0b5f226
......@@ -313,7 +313,8 @@ for tag_id in second_demands_tag_count:
"tag_name": tag_id,
"device_count": second_demands_tag_count[tag_id],
"tractate_count": second_demands_count_dict.get(tag_id),
"exporsure_count": len(second_demands_id_count[tag_id]),
"exporsure_count": len(second_demands_id_count[tag_id]) if second_demands_id_count.get(tag_id) else 0,
# "session_pv_count": len(set(second_demands_id_count[tag_id]))
}
print(temp_dict)
......@@ -324,7 +325,7 @@ for tag_id in projects_demands_tag_count:
"tag_name": tag_id,
"device_count": projects_demands_tag_count[tag_id],
"tractate_count": tags_v3_count_dict.get(tag_id),
"exporsure_count": len(projects_demands_id_count[tag_id]),
"exporsure_count": len(projects_demands_id_count[tag_id]) if projects_demands_id_count.get(tag_id) else 0,
# "session_pv_count": len(set(second_demands_id_count[tag_id]))
}
print(temp_dict)
\ No newline at end of file
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