def delete(self, item_id): if Item.del_item_by_id(item_id): return jsonify(status=True) else: return jsonify(status=False)