commit2 permissions

This commit is contained in:
Mateusz Gruszczyński
2025-09-13 22:47:02 +02:00
parent 14c53aa856
commit 3ade00fe08

6
app.py
View File

@@ -1069,7 +1069,8 @@ def resolve_range(range_type: str):
elif rt in ("last30days", "last_30_days"):
sd = (now - timedelta(days=30)).date().strftime("%Y-%m-%d")
ed = now.date().strftime("%Y-%m-%d")
bucket = "monthly" elif rt in ("last90days", "last_90_days"):
bucket = "monthly"
elif rt in ("last90days", "last_90_days"):
sd = (now - timedelta(days=90)).date().strftime("%Y-%m-%d")
ed = now.date().strftime("%Y-%m-%d")
bucket = "monthly"
@@ -2140,7 +2141,8 @@ def expenses_data():
@app.route("/share/<token>")
@app.route("/guest-list/<int:list_id>")
#@app.route("/guest-list/<int:list_id>")
@app.route("/shared/<int:list_id>")
def shared_list(token=None, list_id=None):
now = datetime.now(timezone.utc)