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.
2 parents 5480ec7 + 15587f1 commit 6ce17d5Copy full SHA for 6ce17d5
pyowm/weatherapi25/weather.py
@@ -319,6 +319,10 @@ def from_dict(cls, the_dict):
319
elif 'all' in the_dict['clouds']:
320
clouds = the_dict['clouds']['all']
321
322
+ # -- precipitation workaround
323
+ if 'precipitation' in the_dict and 'rain' not in the_dict:
324
+ the_dict['rain'] = the_dict['precipitation']
325
+
326
# -- rain
327
rain = dict()
328
if 'rain' in the_dict:
0 commit comments