Commit 28d85ebd authored by litaolemo's avatar litaolemo

update

parent aefd29f9
......@@ -448,13 +448,13 @@ def from_id_get_tag(card_id_dict):
for card_id in card_id_dict[card_type]:
res = es.get_source(index,doc_type,card_id)
print(res)
first_demands = res.get("first_demands")
second_demands = res.get("second_demands")
first_solutions = res.get("first_solutions")
second_solutions = res.get("second_solutions")
first_positions = res.get("first_positions")
second_positions = res.get("second_positions")
projects = res.get("projects")
first_demands = res.get("first_demands") if res.get("first_demands") else 0
second_demands = res.get("second_demands") if res.get("second_demands") else 0
first_solutions = res.get("first_solutions") if res.get("first_solutions") else 0
second_solutions = res.get("second_solutions") if res.get("second_solutions") else 0
first_positions = res.get("first_positions") if res.get("first_positions") else 0
second_positions = res.get("second_positions") if res.get("second_positions") else 0
projects = res.get("projects") if res.get("projects") else 0
word_count_list = first_demands + second_demands + first_solutions + second_solutions + first_positions + second_positions + projects
for word in word_count_list:
if word in query_count:
......
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