calgo-lab / green-db

The monorepo that powers the GreenDB.
https://calgo-lab.github.io/green-db/
22 stars 2 forks source link

Use certificate information from JSON #39

Closed BigDatalex closed 2 years ago

BigDatalex commented 2 years ago

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.