Fixed usability bugs
This commit is contained in:
parent
d93b0bc07d
commit
0c46f98225
@ -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)
|
||||
|
Reference in New Issue
Block a user