Skip to content

Commit

Permalink
update encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinelliott committed Jul 3, 2024
1 parent 59ca6fb commit 85dba12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def default(self, obj):
if isinstance(obj, (datetime.date, datetime.datetime)):
return obj.astimezone().isoformat()
if isinstance(obj, str) and obj.startswith('!'):
return obj[1:]
return json.JSONEncoder.default(obj[1:])
return json.JSONEncoder.default(obj)

class _JSONDecoder(json.JSONDecoder):
Expand Down

0 comments on commit 85dba12

Please sign in to comment.