permissions #11

Merged
gru merged 25 commits from permissions into master 2025-09-14 19:12:56 +02:00
Showing only changes of commit 3ade00fe08 - Show all commits

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)