From 0c46f98225e7df26ecb35c424328810bdb3f39e1 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 14 Apr 2023 13:26:11 +0200 Subject: [PATCH] Fixed usability bugs --- modules/commands/export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/commands/export.py b/modules/commands/export.py index 85b94cf..f502779 100644 --- a/modules/commands/export.py +++ b/modules/commands/export.py @@ -15,6 +15,7 @@ from modules import custom_filters from modules.database import col_applications, col_sponsorships, col_warnings from modules.logging import logWrite from modules.utils import locale, should_quote +from modules.event import col_event @app.on_message( @@ -148,8 +149,8 @@ async def cmd_export(app: Client, msg: Message): elif selection == "event": header_csv = ["user", "stage", "date"] - for entry in list(col_warnings.find()): - del entry["id"] + for entry in list(col_event.find()): + del entry["_id"] entry["date"] = entry["date"].isoformat() output_json.append(entry) output_csv.append(entry)