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

    """
    Retrieves the current capacity of a class

    Returns: dictionary of an integer
    """

    myDb, myCursor = dbConnect()
    data = request.args
    
    res = getClassCap(myCursor, data["class_id"])

    dbDisconnect(myCursor, myDb)
    return dumps({"class_capacity": res})

    Retrieves the current capacity of a class

    Returns: dictionary of an integer
    
Retrieves the current capacity of a class
Returns: dictionary of an integer
Retrieves the current capacity of a class Returns : dictionary of an integer
def classCapacity():
    myDb, myCursor = dbConnect()
    data = request.args
    res = getClassCap(myCursor, data["class_id"])
    dbDisconnect(myCursor, myDb)
    return dumps({"class_capacity": res})
def classCapacity ( ) : myDb , myCursor = dbConnect ( ) data = request . args res = getClassCap ( myCursor , data [ "class_id" ] ) dbDisconnect ( myCursor , myDb ) return dumps ( { "class_capacity" : res } )
Retrieves the current capacity of a class
Returns: dictionary of an integer
Retrieves the current capacity of a class Returns : dictionary of an integer
"""
    Retrieves the current capacity of a class

    Returns: dictionary of an integer
    """