Skip to content

Commit

Permalink
TIL this works
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-genson committed May 6, 2023
1 parent 0f11360 commit 7b2cbec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mealie/schema/response/query_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def validate(self, model_attr_type: Any) -> Any:
except ValueError as e:
raise ValueError(f"invalid query string: invalid UUID '{v}'") from e

if isinstance(model_attr_type, (sqltypes.Date, sqltypes.DateTime)):
if isinstance(model_attr_type, sqltypes.Date | sqltypes.DateTime):
try:
sanitized_values[i] = date_parser.parse(v)
except ParserError as e:
Expand Down

0 comments on commit 7b2cbec

Please sign in to comment.