mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 04:36:25 +00:00
7509a78f65
Includes a change to `cli/load` and `build_static_site.sh` to accept a `--weights WEIGHTS_FILE` argument. This allows overriding the default weights at build-time using a `weights.json` that has the same format as previously generated in the frontend. Test plan: Adds an additional test-case as well for propagating the optional parameter. The file I/O of loading and parsing a weights.json file was tested manually. As analysis/weights' fromJSON() is tested elsewhere as is passing weight parameters.