Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: delete shopping list (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored May 28, 2023
1 parent 08008e3 commit 6f36c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/shoppinglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Shoppinglist(db.Model, DbModelMixin, TimestampMixin, DbModelAuthorizeMixin
def getDefault(cls, household_id: int) -> Self:
return cls.query.filter(cls.household_id == household_id).order_by(cls.id).first()

def isDefault(self, household_id: int) -> bool:
return self.id == self.getDefault(household_id).id
def isDefault(self) -> bool:
return self.id == self.getDefault(self.household_id).id


class ShoppinglistItems(db.Model, DbModelMixin, TimestampMixin):
Expand Down

0 comments on commit 6f36c23

Please sign in to comment.