Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beiyuouo committed Nov 4, 2022
1 parent ca5e9e6 commit 48df7cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def get_dblp_items(dblp_data):
"url",
]
for key in needed_keys:
res_item[key] = get_item_info(item["info"], key).replace("'", "")
key_temp = get_item_info(item["info"], key)
res_item[key] = key_temp if key_temp else ""

res_items.append(res_item)

Expand All @@ -97,4 +98,5 @@ def get_msg(items, topic):
msg += f"- Venue: {item['venue']}\\n"
msg += f"- Year: {item['year']}\\n\\n"

msg = msg.replace("'", "")
return msg

0 comments on commit 48df7cf

Please sign in to comment.