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