Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dependencies/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ msgpack==1.1.0
qasync==0.27.1
tqdm==2.2.3
tzdata
countryflag==1.1.1
4 changes: 3 additions & 1 deletion src/Helpers/TSHCountryHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .TSHLocaleHelper import TSHLocaleHelper
import orjson
from loguru import logger
import countryflag


class TSHCountryHelperSignals(QObject):
Expand Down Expand Up @@ -87,7 +88,8 @@ def GetBasicCountryInfo(country_code):
"code": TSHCountryHelper.countries[country_code]["code"],
"latitude": TSHCountryHelper.countries[country_code]["latitude"],
"longitude": TSHCountryHelper.countries[country_code]["longitude"],
"asset": f'./assets/country_flag/{country_code.lower()}.png'
"asset": f'./assets/country_flag/{country_code.lower()}.png',
"emoji": countryflag.getflag(TSHCountryHelper.countries[country_code]["code"])
}

def LoadCountries():
Expand Down