Pass country as an instance, not an ID. | #163852

This commit is contained in:
Albert Cervera i Areny 2023-12-11 18:00:44 +01:00
parent 1bc00f7aba
commit 697c7034d7
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def carriers(lang):
if country:
try:
country = int(country)
country = Country(int(country))
except ValueError:
country = None