chmac / comboapp

This repo has moved
https://github.com/TripSit/comboapp
MIT License
1 stars 3 forks source link

Add more data #2

Open chmac opened 4 years ago

chmac commented 4 years ago

Looks like there's some data being fetched here that could be useful:

https://github.com/TripSit/factsheets/blob/058f9efde34de0a61d1530781f3513046ddb814a/routes/index.js#L129-L130

Both JSON files. There's more detail in that file that likely explains how the additional data which is not included in the combo_beta.json file is generated...

chmac commented 4 years ago

OK, looks like this is the key section:

https://github.com/TripSit/factsheets/blob/058f9efde34de0a61d1530781f3513046ddb814a/routes/index.js#L294-L310

This essentially means that if the substance doesn't exist in the combo sheet, there is some fallback logic which looks like: