Skip to content

Commit

Permalink
sqlalchemy. add datatime types (#3)
Browse files Browse the repository at this point in the history
add datetime type to SQLAlchemyModelFactory._get_existing filter_kwargs
  • Loading branch information
westonplatter committed Jun 27, 2020
1 parent dd308a8 commit 722fd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_yaml_fixtures/factories/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _get_existing(self, identifier: Identifier, data: Dict[str, Any]):
if not filter_kwargs:
filter_kwargs = {k: v for k, v in data.items()
if v is None
or isinstance(v, (bool, int, str, float))}
or isinstance(v, (bool, int, str, float, datetime))}
if not filter_kwargs:
return None

Expand Down

0 comments on commit 722fd72

Please sign in to comment.