From bf6c7d39f5255337ce7fdb4931874525a3d39637 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Mon, 10 Apr 2023 04:47:19 -0400 Subject: [PATCH] pokken: small cleanup on LoadUser --- titles/pokken/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/titles/pokken/base.py b/titles/pokken/base.py index 5fa200b..96d5efd 100644 --- a/titles/pokken/base.py +++ b/titles/pokken/base.py @@ -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 = []