scraper icon indicating copy to clipboard operation
scraper copied to clipboard

Generate LOC in code.json

Open ghost opened this issue 5 years ago • 2 comments

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.

ghost avatar Aug 09 '19 12:08 ghost

I think this may be related to https://github.com/GSA/code-gov-data/issues/22

leebrian avatar Aug 09 '19 14:08 leebrian

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.

IanLee1521 avatar Aug 09 '19 16:08 IanLee1521