Skip to content

Commit f814689

Browse files
authored
Update db.py
1 parent ec996e6 commit f814689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _newWeatherCondition(self, condition : dict, area : dict, dt : datetime) ->
135135
area["latitude"],
136136
area["longitude"],
137137

138-
area["population"]
138+
area.get("population",0)
139139
))
140140

141141
def _newDaily(self, daily : dict, area : dict) -> None:

0 commit comments

Comments
 (0)