dev #43
@ -15,6 +15,7 @@ from modules import custom_filters
|
|||||||
from modules.database import col_applications, col_sponsorships, col_warnings
|
from modules.database import col_applications, col_sponsorships, col_warnings
|
||||||
from modules.logging import logWrite
|
from modules.logging import logWrite
|
||||||
from modules.utils import locale, should_quote
|
from modules.utils import locale, should_quote
|
||||||
|
from modules.event import col_event
|
||||||
|
|
||||||
|
|
||||||
@app.on_message(
|
@app.on_message(
|
||||||
@ -148,8 +149,8 @@ async def cmd_export(app: Client, msg: Message):
|
|||||||
elif selection == "event":
|
elif selection == "event":
|
||||||
header_csv = ["user", "stage", "date"]
|
header_csv = ["user", "stage", "date"]
|
||||||
|
|
||||||
for entry in list(col_warnings.find()):
|
for entry in list(col_event.find()):
|
||||||
del entry["id"]
|
del entry["_id"]
|
||||||
entry["date"] = entry["date"].isoformat()
|
entry["date"] = entry["date"].isoformat()
|
||||||
output_json.append(entry)
|
output_json.append(entry)
|
||||||
output_csv.append(entry)
|
output_csv.append(entry)
|
||||||
|
Reference in New Issue
Block a user