Skip to content

Commit

Permalink
Changed inspected column
Browse files Browse the repository at this point in the history
  • Loading branch information
PetJer committed Sep 24, 2023
1 parent 73115b6 commit 1cf8731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API/gimvicurnik/updaters/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _parse_snack_menu_xlsx(self, stream: BytesIO, effective: datetime.date) -> N
snack_menu["fruitvegetable"].append(wr[4].value.strip())

# Store the menu after the end of day
if wr[0].border.bottom.color:
if wr[1].border.bottom.color:
snack_menu["date"] = effective + datetime.timedelta(days=days)
self.session.query(SnackMenu).filter(SnackMenu.date == snack_menu["date"]).delete()

Expand Down Expand Up @@ -312,7 +312,7 @@ def _parse_lunch_menu_xlsx(self, stream: BytesIO, effective: datetime.date) -> N
lunch_menu["vegetarian"].append(wr[2].value.strip())

# Store the menu after the end of day
if wr[0].border.bottom.color:
if wr[1].border.bottom.color:
lunch_menu["date"] = effective + datetime.timedelta(days=days)
self.session.query(LunchMenu).filter(LunchMenu.date == lunch_menu["date"]).delete()

Expand Down

0 comments on commit 1cf8731

Please sign in to comment.