def get_from_db()

in resources/code/scenario0/api/app.py [0:0]


def get_from_db(table):
    if local_db:
        return db.get(table)

    cursor = conn.cursor()
    cursor.execute(f"SELECT * FROM {table}")
    return cursor.fetchall()