pokken: small cleanup on LoadUser

This commit is contained in:
Hay1tsme 2023-04-10 04:47:19 -04:00
parent 5ec280ab8c
commit bf6c7d39f5

View File

@ -182,7 +182,8 @@ class PokkenBase:
load_usr.new_card_flag = True
else:
profile_dict = profile._asdict()
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', '')})")
pokemon_data = self.data.profile.get_all_pokemon_data(user_id)
tutorial_progress = []
rankmatch_progress = []