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
4 changes: 2 additions & 2 deletions app/location/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ..coordinates import Coordinates
from ..utils import countrycodes
from ..utils import countries
from ..utils.populations import country_population


Expand Down Expand Up @@ -31,7 +31,7 @@ def country_code(self):
:returns: The country code.
:rtype: str
"""
return (countrycodes.country_code(self.country) or countrycodes.default_code).upper()
return (countries.country_code(self.country) or countries.default_country_code).upper()

@property
def country_population(self):
Expand Down
4 changes: 2 additions & 2 deletions app/services/location/jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ...coordinates import Coordinates
from ...location import TimelinedLocation
from ...timeline import Timeline
from ...utils import countrycodes
from ...utils import countries
from ...utils import date as date_util
from . import LocationService

Expand Down Expand Up @@ -80,7 +80,7 @@ def get_category(category):
{
# General info.
"country": country,
"country_code": countrycodes.country_code(country),
"country_code": countries.country_code(country),
"province": item["Province/State"],
# Coordinates.
"coordinates": {"lat": item["Lat"], "long": item["Long"],},
Expand Down
Loading