pir_pipeline.utils.dashboard_utils.get_review_question

pir_pipeline.utils.dashboard_utils.get_review_question(table: str, offset: int | str, id_column: str, db: SQLAlchemyUtils) tuple

Get information for the header question on a flashcard page

Args:

table (str): The table to search in. offset (int | str): The question to return. If integer, return the question at that position. If string return the question with corresponding ID. id_column (str): Column serving as the primary identifier. db (SQLAlchemyUtils): SQLAlchemyUtils object

Returns:

tuple: tuple[string, dict] containing the id_column and the record returned from the searching for the offset.