This commit is contained in:
derlole
2025-05-07 11:41:53 +00:00
parent aacf9d625f
commit 393579a7a4
2 changed files with 7 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ from datetime import datetime
socketio = SocketIO(cors_allowed_origins="*", async_mode='threading')
# function to change the datetime format to isoformat because json does not support datetime
def convert_datetimes(obj):
if isinstance(obj, dict):
return {k: convert_datetimes(v) for k, v in obj.items()}