Skip to content

Commit

Permalink
fixed for linters
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Jun 29, 2024
1 parent d054824 commit 3fc8963
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shvatka/infrastructure/db/dao/redis/secure_invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3fc8963

Please sign in to comment.