So far the sustainability information was held within the code itself. For better maintainability and direct usage of the certificate information from Ecosias Github, a new file sustainability_labels.py was added which includes the functionality to read in the JSON file from Ecosia named sustainability-labels.json as well as another JSON which stores the evaluation information of the certificates. The functionality was implemented inside the core package, replacing all the functionality inside the database/sustainability_labels directory, resulting in a cleaner database package.
So far the sustainability information was held within the code itself. For better maintainability and direct usage of the certificate information from Ecosias Github, a new file
sustainability_labels.py
was added which includes the functionality to read in the JSON file from Ecosia namedsustainability-labels.json
as well as another JSON which stores the evaluation information of the certificates. The functionality was implemented inside the core package, replacing all the functionality inside thedatabase/sustainability_labels
directory, resulting in a cleaner database package.