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_tokenthe 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 thereposcopes and you need to have write access to the repository.ideascale_api_tokenthe API token used to fetch data from the Ideascale API.ideascale_base_api_urlthe Ideascale API base url, likehttps://cardano.ideascale.com/a/restassess_funnel_stage_idsthe ids of the funnel stages to queryassess_funnel_endpointthe endpoint forgetAssessmentResults.
Launch the script with:
python3 update-assessments-count.py
Optionally set a cronjob to regularly update the file.