From eaab3728c45d36be0b6b47107cb94ec0f84c6d7f Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Tue, 11 Jun 2024 14:00:29 -0400 Subject: [PATCH] pokken: add additional logging --- titles/pokken/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/titles/pokken/base.py b/titles/pokken/base.py index 5830f43..199d226 100644 --- a/titles/pokken/base.py +++ b/titles/pokken/base.py @@ -184,15 +184,14 @@ class PokkenBase: if profile is None or profile['trainer_name'] is None: profile_id = await self.data.profile.create_profile(user_id) + self.logger.info(f"Create new profile {profile_id} for user {user_id}") profile_dict = {"id": profile_id, "user": user_id} pokemon_data = [] load_usr.new_card_flag = True else: profile_dict = {k: v for k, v in profile._asdict().items() if v is not None} - self.logger.info( - f"Card-in user {user_id} (Trainer name {profile_dict.get('trainer_name', '')})" - ) + self.logger.info(f"Card-in user {user_id} (Trainer name {profile_dict.get('trainer_name', '')})") pokemon_data = await self.data.profile.get_all_pokemon_data(user_id) load_usr.new_card_flag = False