From 3fc8963d779773ca5a89917381b0eabfec34f43a Mon Sep 17 00:00:00 2001 From: Yuriy Chebyshev Date: Sat, 29 Jun 2024 09:37:11 +0300 Subject: [PATCH] fixed for linters --- shvatka/infrastructure/db/dao/redis/secure_invite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shvatka/infrastructure/db/dao/redis/secure_invite.py b/shvatka/infrastructure/db/dao/redis/secure_invite.py index 26f4747b..ada76e85 100644 --- a/shvatka/infrastructure/db/dao/redis/secure_invite.py +++ b/shvatka/infrastructure/db/dao/redis/secure_invite.py @@ -29,7 +29,9 @@ async def save_new_invite( :return: secure token """ token = secrets.token_urlsafe(token_len) - await self.redis.set(self._create_key(token), json.dumps(dct), ex=timedelta(minutes=expire)) + await self.redis.set( + self._create_key(token), json.dumps(dct), ex=timedelta(minutes=expire) + ) return token async def get_invite(self, token: str) -> dict: