hw_todo/tests/SpyRoutes.py
def check_if_exists(canvas_id):
    """
    Helper Method
    Checks if a given canvas assignment already exists in the database
    :return: Boolean (True if exists in database, False if not)
    """
    existing_tasks = db_canvas["Tasks"]
    for x in range(len(db_canvas["Tasks"])):
        if existing_tasks[x]["Canvas ID"] == canvas_id:
            return True
    return False

    Helper Method
    Checks if a given canvas assignment already exists in the database
    :return: Boolean (True if exists in database, False if not)
    
Helper Method
Checks if a given canvas assignment already exists in the database
Helper Method Checks if a given canvas assignment already exists in the database
def check_if_exists(canvas_id):
    existing_tasks = db_canvas["Tasks"]
    for x in range(len(db_canvas["Tasks"])):
        if existing_tasks[x]["Canvas ID"] == canvas_id:
            return True
    return False
def check_if_exists ( canvas_id ) : existing_tasks = db_canvas [ "Tasks" ] for x in range ( len ( db_canvas [ "Tasks" ] ) ) : if existing_tasks [ x ] [ "Canvas ID" ] == canvas_id : return True return False
Helper Method
Checks if a given canvas assignment already exists in the database
Helper Method Checks if a given canvas assignment already exists in the database
"""
    Helper Method
    Checks if a given canvas assignment already exists in the database
    :return: Boolean (True if exists in database, False if not)
    """
Boolean (True if exists in database, False if not)
Boolean ( True if exists in database False if not )
canvas_id