Ejemplo n.º 1
0
def rEquipmentSub(subcat):
    rtrn_hndl = req.new_subcat("equipment", subcat)
    if rtrn_hndl == 1:
        return "Subcategory Added", 201
    else:
        return "Table already exists", 400
Ejemplo n.º 2
0
def rToolSub(subcat):
    rtrn_hndl = req.new_subcat("tools", subcat)
    if rtrn_hndl == 1:
        return "Subcategory Added", 201
    else:
        return "Table already exists", 400
Ejemplo n.º 3
0
def rLandscapeSub(subcat):
    rtrn_hndl = req.new_subcat("landscape", subcat)
    if rtrn_hndl == 1:
        return "Subcategory Added", 201
    else:
        return "Table already exists", 400