dev #43

Merged
profitroll merged 49 commits from dev into master 2023-05-02 14:12:58 +03:00
Showing only changes of commit 0c46f98225 - Show all commits

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)