Skip to content

Commit 6edb9cd

Browse files
committed
In this commit the class name was capitalized and used to refernce inner vars.
1 parent 68fda04 commit 6edb9cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/utils/populations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
GEONAMES_URL = "http://api.geonames.org/countryInfoJSON"
1111
GEONAMES_BACKUP_PATH = "geonames_population_mappings.json"
1212

13-
class population:
13+
class Population:
1414
# Fetching of the populations.
1515
def fetch_populations(save=False):
1616
"""
@@ -58,4 +58,4 @@ def country_population(country_code, default=None):
5858
:returns: The population.
5959
:rtype: int
6060
"""
61-
return POPULATIONS.get(country_code, default)
61+
return Population.POPULATIONS.get(country_code, default)

0 commit comments

Comments
 (0)