Удаление блюда
This commit is contained in:
1
admin/.~lock.Menu.xlsx#
Normal file
1
admin/.~lock.Menu.xlsx#
Normal file
@@ -0,0 +1 @@
|
||||
,pi3c,pi3code,13.02.2024 12:37,file:///home/pi3c/.config/libreoffice/4;
|
BIN
admin/Menu.xlsx
BIN
admin/Menu.xlsx
Binary file not shown.
@@ -245,7 +245,7 @@ async def dishes_updater(dishes: dict, session: AsyncSession) -> None:
|
||||
|
||||
for key in {k: cached_dishes[k] for k in set(cached_dishes) - set(dishes)}:
|
||||
# Проверяем на удаленные меню
|
||||
await on_submenu_change({}, cached_dishes.pop(key), session)
|
||||
await on_dish_change({}, cached_dishes.pop(key), session)
|
||||
|
||||
for key in dishes.keys():
|
||||
parent = cached_submenus[dishes[key]['parent_num']]['id']
|
||||
@@ -271,7 +271,7 @@ async def dishes_updater(dishes: dict, session: AsyncSession) -> None:
|
||||
f"DISCONT:{dishes[key]['id']}", pickle.dumps(dishes[key]['discont'])
|
||||
)
|
||||
|
||||
await redis.set('ALL_DISHES', pickle.dumps(dishes))
|
||||
await redis.set('ALL_DISHES', pickle.dumps(dishes))
|
||||
|
||||
|
||||
async def updater(rows):
|
||||
|
Reference in New Issue
Block a user