Closed dustinvtran closed 2 years ago
keywords
(see below) and apiRefs
should be indexed commonMetadata
objects
keywords
field which contains an array of words (e.g. ["Inglourious", "Basterds", "Quentin", "Tarantino", "2009", "War", "Action", "Cristoph", "Waltz", "Brad", "Pitt"]
). This is due to searching limitations in Fauna. This way, after setting up an index for that field, we can search any of those words to get that document. (partial word or fuzzy matching is not supported)commonMetadata
objects should be replaced with workRef: "refIdOfTheNewlyCreatedDocument"
commonMetadata
to not break the site while this is in progress. We can delete this field later, or leave it there. Future entries won't contain commonMetadata
. { "name": "igdb", "ref": "1234" }
), if not, then it should first create the database document (connecting to any necessary external APIs to get the data), then return ithttps://github.com/td-memo/memo/commit/44ee8936f3367d7f7ccea035dc7851a589eb06da
Some bugs might come up, let's stay cautious.
src/scrape_video_games.py currently writes the data scraped from video game databases into the user's JSON files. It's better to have a clean separation. Therefore it scales to >1 user and avoids issues such as users accidentally overwriting database data or database data accidentally overwriting user data.