Fixed usability bugs

This commit is contained in:
Profitroll 2023-04-14 13:26:11 +02:00
parent d93b0bc07d
commit 0c46f98225

View File

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