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")