This repo contains a utility to update the count of assessments received by proposals in Project Catalyst. These data are intended to be consumed by the CA tool.
Install requirements with:
pip3 install -r requirements.txt
Copy options.json.template
to options.json
and set:
github_access_token
the Github token used to push the updates to the json file. You have to create the token from Github Profile -> Settings -> Developer Settings -> Personal Access Token. The token needs therepo
scopes and you need to have write access to the repository.ideascale_api_token
the API token used to fetch data from the Ideascale API.ideascale_base_api_url
the Ideascale API base url, likehttps://cardano.ideascale.com/a/rest
assess_funnel_stage_ids
the ids of the funnel stages to queryassess_funnel_endpoint
the endpoint forgetAssessmentResults
.
Launch the script with:
python3 update-assessments-count.py
Optionally set a cronjob to regularly update the file.