scraper
scraper copied to clipboard
Generate LOC in code.json
Generate LOC in code.json. Note that this requires the code.gov metadata schema 2.0.0 to be updated to include a measurement field.
I think this may be related to https://github.com/GSA/code-gov-data/issues/22
This will be trivial once a field is added.
Today we calculate the laborHours (which does have a field in the schema), which is done based on the number of lines of code: https://github.com/LLNL/scraper/blob/ca3736de0bcdfded43e4f52f7d8cbb37eea39b46/scraper/util.py#L200
So all we need to do is store that value in the correct place and we’re already done.