tosdr / tosdr.org

ARCHIVED Source code for tosdr.org
https://github.com/tosdr/CrispCMS
GNU Affero General Public License v3.0
454 stars 28 forks source link

update rated index during build #195

Closed michielbdejong closed 3 years ago

michielbdejong commented 6 years ago

should make sure dist/index/ratings.json is updated each build, to list all domains of all the following services:


services/500px.json:    "rated": "D"
services/cloudant.json:    "rated": "B"
services/delicious.json:    "rated": "D"
services/duckduckgo.json:    "rated": "A"
services/github.json:    "rated": "B"
services/google.json:    "rated": "C"
services/kolabnow.json:    "rated": "A"
services/lastpass.json:    "rated": "B"
services/qwant.json:    "rated": "B"
services/seenthis.json:    "rated": "A"
services/soundcloud.json:    "rated": "B"
services/youtube.json:    "rated": "D"
michielbdejong commented 6 years ago

There's:

cd src
node ../scripts/checkclasses.js

which writes out index/ratings.json but it doesn't seem to add the newly rated service Qwant.

michielbdejong commented 6 years ago

Each service json file in src/services has a field tosdr.rated, but in index/services.json, each service object has a field class, and that seems to be what this script uses.