pir_pipeline.dashboard.search.get_flashcard_question

pir_pipeline.dashboard.search.get_flashcard_question(offset: int | str, id_column: str, db: SQLAlchemyUtils)

Get data for displaying a flashcard

Args:

offset (int | str): The question to return. Integer when returning questions by position, string when returning a specific question by id. db (SQLAlchemyUtils): SQLAlchemyUtils object for interacting with the database. session (dict): Flask session object.

Returns:

dict: Dictionary containing data for header question and matching questions.