From 939a2bff71616b2ef4c607e62f14c3e90abcb1f8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 21 Apr 2021 14:45:53 +0200 Subject: [PATCH] clean tradeview for obsolet --- ereuse_devicehub/resources/action/views.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ereuse_devicehub/resources/action/views.py b/ereuse_devicehub/resources/action/views.py index e71cddce..bac6fb9f 100644 --- a/ereuse_devicehub/resources/action/views.py +++ b/ereuse_devicehub/resources/action/views.py @@ -70,20 +70,6 @@ def move_json(tmp_snapshots, path_name, user, live=False): os.remove(path_name) -class TradeView(View): - model = Trade - - def post(self): - res_json = request.get_json() - res_obj = self.model(**res_json) - db.session.add(res_obj) - db.session().final_flush() - ret = self.schema.jsonify(res_obj) - ret.status_code = 201 - db.session.commit() - return ret - - class AllocateMix(): model = None