from typing import List


def convert_records_to_dict(records: List[tuple]) -> dict:
    """Converts pyscopg2 records list to a dict."""
    dict = {}
    for record in records:
        # Add record tuple data to dict.
        dict[record[0]] = record[1]
    return dict