Skip to content

Commit

Permalink
Clean up search strings in update_from_dblp (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm authored Aug 13, 2024
2 parents 946d676 + 15ebd08 commit 100d381
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 @@ -75,10 +75,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 100d381

Please sign in to comment.