Skip to content

Commit

Permalink
Couldn't create new person in new work form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Makistos committed Jun 10, 2024
1 parent 36d6e97 commit 784eb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/impl_contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _create_new_contributors(session: Any, contributors: Any) -> List[Any]:
person: Union[Person, None] = None
for contrib in contributors:
person = None
if 'id' not in contrib['person']:
if isinstance(contrib['person'], str) or 'id' not in contrib['person']:
person = _create_new_person(session, contrib)
else:
person = session.query(Person)\
Expand Down

0 comments on commit 784eb5e

Please sign in to comment.