From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Fri, 9 Dec 2022 02:48:43 +0000 (-0800) Subject: Notes a TODO for a later library release to remove a workaround X-Git-Tag: v1.11.0~1^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dd36a439b3b8a2e101f8dd24367e20b8c39663;p=thirdparty%2Fpaperless-ngx.git Notes a TODO for a later library release to remove a workaround --- diff --git a/src/documents/tasks.py b/src/documents/tasks.py index f5bad665ad..b5dc264fb4 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -101,6 +101,8 @@ def consume_file( # Celery converts this to a string, but everything expects a datetime # Long term solution is to not use JSON for the serializer but pickle instead + # TODO: This will be resolved in kombu 5.3, expected with celery 5.3 + # More types will be retained through JSON encode/decode if override_created is not None and isinstance(override_created, str): try: override_created = datetime.fromisoformat(override_created)