pir_pipeline.utils.dashboard_utils.search_matches

pir_pipeline.utils.dashboard_utils.search_matches(matches: dict, id_column: str, db: SQLAlchemyUtils) dict

Iterate over matches to return all related rows

Args:

matches (dict): Dictionary of records id_column (str): Colum serving as primary identifier db (SQLAlchemyUtils): SQLAlchemyUtils object

Returns:

dict: Dictionary containing one entry for each id which itself may contain multiple records