def category_report(): obj = Item() res = obj.category_report() obj.cnx.teardown() return json.dumps(res)
def auction_result(): obj = Item() res = obj.auction_result() obj.cnx.teardown() return json.dumps(res)
def bid_item(): data = json.loads(request.get_data().decode()) obj = Item() res = obj.bid_item(**data) obj.cnx.teardown() return json.dumps(res)
def change_description(): data = json.loads(request.get_data().decode()) obj = Item() res = obj.change_description(**data) obj.cnx.teardown() return json.dumps(res)
def get_category(): obj = Item() res = obj.get_category() obj.cnx.teardown() return json.dumps(res)