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

    """
    Allow an ADMIN to update the day of a class

    Returns: none
    """

    data = request.get_json()

    if not validateWeekday(data["day"]):
        raise InputError(description = "weekday is not of correct format")

    myDb, myCursor = dbConnect()

    updateClassDay(myCursor, myDb, data["class_id"], data["day"])

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

    Allow an ADMIN to update the day of a class

    Returns: none
    
Allow an ADMIN to update the day of a class
Returns: none
Allow an ADMIN to update the day of a class Returns : none
def classUpdateDay(u_id):
    data = request.get_json()
    if not validateWeekday(data["day"]):
        raise InputError(description = "weekday is not of correct format")
    myDb, myCursor = dbConnect()
    updateClassDay(myCursor, myDb, data["class_id"], data["day"])
    dbDisconnect(myCursor, myDb)
    return dumps({})
def classUpdateDay ( u_id ) : data = request . get_json ( ) if not validateWeekday ( data [ "day" ] ) : raise InputError ( description = "weekday is not of correct format" ) myDb , myCursor = dbConnect ( ) updateClassDay ( myCursor , myDb , data [ "class_id" ] , data [ "day" ] ) dbDisconnect ( myCursor , myDb ) return dumps ( { } )
Allow an ADMIN to update the day of a class
Returns: none
Allow an ADMIN to update the day of a class Returns : none
"""
    Allow an ADMIN to update the day of a class

    Returns: none
    """
u_id