diff --git a/admin/.~lock.Menu.xlsx# b/admin/.~lock.Menu.xlsx# new file mode 100644 index 0000000..9e281c7 --- /dev/null +++ b/admin/.~lock.Menu.xlsx# @@ -0,0 +1 @@ +,pi3c,pi3code,13.02.2024 12:37,file:///home/pi3c/.config/libreoffice/4; diff --git a/admin/Menu.xlsx b/admin/Menu.xlsx index 216bc3d..b0969a4 100644 Binary files a/admin/Menu.xlsx and b/admin/Menu.xlsx differ diff --git a/bg_tasks/updater.py b/bg_tasks/updater.py index 01af762..00fe632 100644 --- a/bg_tasks/updater.py +++ b/bg_tasks/updater.py @@ -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):