The config decorator resolves namespace issues for API_NAME,
BASE_URL etc.. The configuration variables were declared globally
causing name conflicts in greenwich.py and milan.py
NGINX response handler added to base importer
Greenwich and milan importers receive a 200 status_code even when
an error has occurred. Even though a 200 status code was received
the response body would contain an error message
eg status_code 499 "expired token"
the load_dataset method would receive a 200 status but not handle
the error in the response body. Hence the token for the API would
not be refresh. A method in the base importer has been add to
handle this scenario.
Zip used to reduce looping through multiple lists in KCLAirQuality
Config Decorator added to importers
NGINX response handler added to base importer
Greenwich and milan importers receive a 200 status_code even when an error has occurred. Even though a 200 status code was received the response body would contain an error message
eg status_code 499 "expired token" the load_dataset method would receive a 200 status but not handle the error in the response body. Hence the token for the API would not be refresh. A method in the base importer has been add to handle this scenario.
Zip used to reduce looping through multiple lists in KCLAirQuality