new fuctions

This commit is contained in:
Mateusz Gruszczyński
2025-08-11 23:48:46 +02:00
parent 9d5630bde3
commit b111e5b4df

2
app.py
View File

@@ -2131,6 +2131,8 @@ def crop_receipt_user():
@admin_required
def admin_panel():
month_str = request.args.get("month")
if not month_str:
month_str = datetime.now(timezone.utc).strftime("%Y-%m")
show_all = (month_str == "all")
if not show_all: