From 11da9de887e1ec3865358f90939743c9e6a55f86 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 16 Dec 2022 15:02:39 +0100 Subject: [PATCH] Fixed a few unsupported types --- modules/commands/applications.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/commands/applications.py b/modules/commands/applications.py index 342388f..11bfb87 100644 --- a/modules/commands/applications.py +++ b/modules/commands/applications.py @@ -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")