Skip to content

Commit

Permalink
Filter out None values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed Jul 30, 2024
1 parent d22e7a3 commit 28fe278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitlab_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ def pydantic_to_sqlalchemy(pydantic_model):
related_instance = pydantic_to_sqlalchemy(nested_model)
setattr(sqlalchemy_instance, key, related_instance)
else:
setattr(sqlalchemy_instance, key, value)
if value:
setattr(sqlalchemy_instance, key, value)
return sqlalchemy_instance

0 comments on commit 28fe278

Please sign in to comment.