Skip to content

Commit

Permalink
Clean up search strings in update_from_dblp
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm committed Aug 13, 2024
1 parent 8c65431 commit 0750bfc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/update_from_dblp.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ def main():

if 'author' in entry.persons:
authors = ", ".join([str(author) for author in entry.persons['author']])
# Clean-up search string
authors = authors.replace('{', '')
authors = authors.replace('}', '')
else:
authors = ""
if 'title' in entry.fields:
title = entry.fields['title']
# Clean-up search string
title = title.replace('{', '')
title = title.replace('}', '')
else:
title = ""

Expand Down

0 comments on commit 0750bfc

Please sign in to comment.