From a1569bca9dbd59b2ac4dc6d1efdaf4a811933c6a Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Thu, 30 Nov 2023 18:14:20 -0500 Subject: [PATCH] fix typing for create_sega_auth_key --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index 2d1854e..3569f57 100644 --- a/core/utils.py +++ b/core/utils.py @@ -64,7 +64,7 @@ class Utils: return cls.real_title_port_ssl -def create_sega_auth_key(aime_id: int, game: str, place_id: str, b64_secret: str, err_logger: str = 'aimedb') -> Optional[str]: +def create_sega_auth_key(aime_id: int, game: str, place_id: int, b64_secret: str, err_logger: str = 'aimedb') -> Optional[str]: logger = logging.getLogger(err_logger) try: return jwt.encode({ "aime_id": aime_id, "game": game, "place_id": place_id, "exp": int(datetime.now(tz=timezone.utc).timestamp()) + 86400 }, b64decode(b64_secret), algorithm="HS256")