diff --git a/dota.py b/dota.py index 9139ba3..479389d 100644 --- a/dota.py +++ b/dota.py @@ -220,8 +220,11 @@ def serialize_match_for_discord(match_): break win = is_radiant == match_['radiant_win'] if not match_['party_size']: - summary = f"??黑 {match_['duration']}" - elif match_['party_size'] > 1: + if Match.filter(match_id=match_['match_id']).exists(): + match_['party_size'] = Match.get(match_id=match_['match_id']).party_size + else: + summary = f"{match_['duration']}" + if match_['party_size'] > 1: summary = f"{match_['party_size']}黑 {match_['duration']}" else: summary = f"单排 {match_['duration']}"