Exemple #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
Exemple #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
Exemple #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