duzo poprawek ux i logicznych

This commit is contained in:
Mateusz Gruszczyński
2025-07-28 00:04:12 +02:00
parent a5025b94ff
commit b9b91ff82b
7 changed files with 68 additions and 44 deletions

2
app.py
View File

@@ -1147,6 +1147,7 @@ def view_list(list_id):
total_count = len(items)
purchased_count = len([i for i in items if i.purchased])
percent = (purchased_count / total_count * 100) if total_count > 0 else 0
is_owner = current_user.id == shopping_list.owner_id
return render_template(
"list.html",
@@ -1159,6 +1160,7 @@ def view_list(list_id):
expenses=expenses,
total_expense=total_expense,
is_share=False,
is_owner=is_owner
)