An open-source Python package to easily obtain real-time, historical, or forecasted air quality data for anywhere in the world. Reliable, accurate and simple.
GNU General Public License v3.0
66
stars
23
forks
source link
refactor: Add common helper method to extract data from response #88
@lahdjirayhan good job on changing the return value of _parse_data method, the method can now be used in wider range of contexts as advertised by it's name, nice work
This PR attempts to address #87
To add more detail, the new method is now called in three places:
get_coordinate_air
get_city_air
get_specific_parameter
Also, an important note, that I change
_parse_data
's return from a list with single dict into just a dict only.I sincerely expect feedback and improvement.