Skip to content

Commit

Permalink
fix: A date gets cast as ::date
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 12, 2024
1 parent 78bc0a3 commit 07209a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/views.py
Expand Up @@ -207,7 +207,7 @@ def metadata(self, request, pk=None):
AND data ->> 'date' > '1970-01-01'
AND data ->> 'date' <= %(today)s
""",
{"collection_id": pk, "today": datetime.date.today()},
{"collection_id": pk, "today": str(datetime.date.today())},
)
metadata.update(dictfetchone(cursor))

Expand Down

0 comments on commit 07209a1

Please sign in to comment.