pir_pipeline.utils.dashboard_utils

Dashboard utilities for interfacing with the database

Functions

get_matches(payload, db)

Return potential matches for a given question or return question_ids within an inconsistent question

get_review_question(table, offset, id_column, db)

Get information for the header question on a flashcard page

get_search_results(keyword, db[, id_column])

Return results for the search page

get_year_range(table, _id, db)

Return the range of years covered by the target question

search_matches(matches, id_column, db)

Iterate over matches to return all related rows

Classes

QuestionLinker(data, db[, log])

QuestionLinker class to handle linking and unlinking of questions