Ozon3Org / Ozon3

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

Closed lahdjirayhan closed 2 years ago

lahdjirayhan commented 2 years ago

This PR attempts to address #87

To add more detail, the new method is now called in three places:

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.

Samxx97 commented 2 years ago

@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