From 2c48529a026082f4023fd00897a3cf84d3bf3c2f Mon Sep 17 00:00:00 2001 From: pi3c Date: Mon, 12 Feb 2024 01:42:53 +0300 Subject: [PATCH] fix --- bg_tasks/updater.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bg_tasks/updater.py b/bg_tasks/updater.py index d1a13f7..68c2f76 100644 --- a/bg_tasks/updater.py +++ b/bg_tasks/updater.py @@ -12,9 +12,7 @@ from fastfood.models import Dish, Menu, SubMenu file = os.path.join(os.path.curdir, 'admin', 'Menu.xlsx') -redis = redis.Redis( - host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB -) +redis = redis.Redis.from_url(url=settings.REDIS_URL) async_engine = create_async_engine(settings.DATABASE_URL_asyncpg) async_session_maker = async_sessionmaker(