Skip to content

Commit

Permalink
fix: check for publication date
Browse files Browse the repository at this point in the history
need to check for pub date because zotero expressions can come without one
  • Loading branch information
babslgam authored and koeaw committed Mar 18, 2024
1 parent d387357 commit 2427819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis_ontology/scripts/import_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def create_expression(
relevant_pages=relevant_pages,
defaults={"data_source": source},
)

expression.publication_date = pub_date
expression.save()
if pub_date:
expression.publication_date = pub_date
expression.save()

return expression, created

Expand Down

0 comments on commit 2427819

Please sign in to comment.