Fixed a few unsupported types

This commit is contained in:
Profitroll 2022-12-16 15:02:39 +01:00
parent a3830f672f
commit 11da9de887
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ async def cmd_applications(app, msg):
filename = uuid1()
output = []
for entry in col_applications.find():
del entry["_id"]
entry["date"] = entry["date"].strftime("%d.%m.%Y, %H:%M")
entry["application"]["2"] = entry["application"]["2"].strftime("%d.%m.%Y, %H:%M")
output.append(entry)
makedirs("tmp", exist_ok=True)
jsonSave(output, f"tmp{sep}{filename}.json")