duzo poprawek ux i logicznych
This commit is contained in:
2
app.py
2
app.py
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user