示例#1
0
 def set_security_checked(lot_id):
     if request.type == "PUT":
         Lot.set_security_checked(lot_id, True)
         return RestAPI.message("Lot's security is now checked"), 201
     if request.type == "DELETE":
         Lot.set_security_checked(lot_id, False)
         return RestAPI.message("Lot's security is no more checked"), 201
示例#2
0
 def set_security_checked(lot_id):
     if request.type == 'PUT':
         Lot.set_security_checked(lot_id, True)
         return RestAPI.message('Lot\'s security is now checked'), 201
     if request.type == 'DELETE':
         Lot.set_security_checked(lot_id, False)
         return RestAPI.message('Lot\'s security is no more checked'), 201