Удаление блюда

develop
Сергей Ванюшкин 2024-02-13 12:38:13 +03:00
parent 4c3779776d
commit f75415d9d9
3 changed files with 3 additions and 2 deletions

1
admin/.~lock.Menu.xlsx# Normal file
View File

@ -0,0 +1 @@
,pi3c,pi3code,13.02.2024 12:37,file:///home/pi3c/.config/libreoffice/4;

Binary file not shown.

View File

@ -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)}: 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(): for key in dishes.keys():
parent = cached_submenus[dishes[key]['parent_num']]['id'] 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']) 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): async def updater(rows):