We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de23fa commit 2e0034eCopy full SHA for 2e0034e
app/location/__init__.py
@@ -29,11 +29,12 @@ def country_population(self):
29
"""
30
country_code = self.country_code
31
32
- # Population data is unavailable for provinces
+ # Population data is only available for countries.
33
if not self.country_code:
34
return None
35
- else:
36
- return countrypopulation.get_population_dict()[country_code]
+
+ # Return population.
37
+ return countrypopulation.get_population_dict()[country_code]
38
39
@property
40
def country_code(self):
0 commit comments