trackMe-backend/src/server.py
def classUpdateTime(u_id):

    """
    Allow an ADMIN to update the start time of a class
    """

    data = request.get_json()

    if not validateTime(data["start_time"]):
        raise InputError(description = "start_time is of incorrect format")

    myDb, myCursor = dbConnect()

    updateClassStartTime(myCursor, myDb, data["class_id"], data["start_time"])

    dbDisconnect(myCursor, myDb)
    return dumps({})

    Allow an ADMIN to update the start time of a class
    
Allow an ADMIN to update the start time of a class
Allow an ADMIN to update the start time of a class
def classUpdateTime(u_id):
    data = request.get_json()
    if not validateTime(data["start_time"]):
        raise InputError(description = "start_time is of incorrect format")
    myDb, myCursor = dbConnect()
    updateClassStartTime(myCursor, myDb, data["class_id"], data["start_time"])
    dbDisconnect(myCursor, myDb)
    return dumps({})
def classUpdateTime ( u_id ) : data = request . get_json ( ) if not validateTime ( data [ "start_time" ] ) : raise InputError ( description = "start_time is of incorrect format" ) myDb , myCursor = dbConnect ( ) updateClassStartTime ( myCursor , myDb , data [ "class_id" ] , data [ "start_time" ] ) dbDisconnect ( myCursor , myDb ) return dumps ( { } )
Allow an ADMIN to update the start time of a class
Allow an ADMIN to update the start time of a class
"""
    Allow an ADMIN to update the start time of a class
    """
u_id