diff --git a/app/utils/helpers.py b/app/utils/helpers.py index 19f9e4db..0914f517 100644 --- a/app/utils/helpers.py +++ b/app/utils/helpers.py @@ -1,5 +1,5 @@ -from datetime import datetime as dt import json +from datetime import datetime as dt from uuid import UUID @@ -19,5 +19,5 @@ class UUIDEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, UUID): # if the obj is uuid, we simply return the value of uuid - return obj.hex - return json.JSONEncoder.default(self, obj) + return str(obj) + return super().default(self, obj)