Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more data #2

Open
chmac opened this issue Apr 25, 2020 · 1 comment
Open

Add more data #2

chmac opened this issue Apr 25, 2020 · 1 comment

Comments

@chmac
Copy link
Owner

chmac commented Apr 25, 2020

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
Copy link
Owner Author

chmac commented Apr 26, 2020

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:

  • Starts with do. then it's combo info comes from dox
  • Starts with 2c then it's combo info comes from 2c-x
  • Starts with 5-meo- then it's combo info comes from 5-meo-xxt
  • If it's in any of these categories, then use their data, in order of preference:
    • benzodiazepines
    • opioids
    • amphetamines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant