Skip to content

Commit 36963da

Browse files
committed
change population property to country_population
1 parent 4325aaa commit 36963da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/location/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from ..coordinates import Coordinates
22
from ..utils import countrycodes
3-
from ..services.population import countrypopulation
3+
from ..utils.population import countrypopulation
44

55
class Location:
66
"""
@@ -23,7 +23,7 @@ def __init__(self, id, country, province, coordinates, last_updated, confirmed,
2323
self.recovered = recovered
2424

2525
@property
26-
def population(self):
26+
def country_population(self):
2727
"""
2828
Gets the population of this location.
2929
"""
@@ -32,7 +32,6 @@ def population(self):
3232
if self.province:
3333
return None
3434
else:
35-
print(countrypopulation.get_population_dict()[self.country_code])
3635
return countrypopulation.get_population_dict()[self.country_code]
3736

3837
@property

0 commit comments

Comments
 (0)