Skip to content

Commit

Permalink
fix: sorted bug in "add past friendly" function
Browse files Browse the repository at this point in the history
  • Loading branch information
joschobart committed Aug 28, 2024
1 parent 1e1a638 commit 978d554
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fun_with_flags/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ def details():
_opponent = api.ht_get_team(_xml)
_match_country = _opponent[_opponent_teamid]["team_country_id"]

if _match_country == g.flagid:
if _match_country == g.flagid and _my_match["match_type"] in (
"4",
"5",
"8",
"9",
):
flash(
gettext("{_place}-match added.".format(_place=_place))
)
Expand Down

0 comments on commit 978d554

Please sign in to comment.