From a40748d0b211075e989fded3b829fc191dcbb0cf Mon Sep 17 00:00:00 2001 From: Davide Bongiovanni Date: Sun, 11 Nov 2018 18:24:28 +0100 Subject: [PATCH] Fixed deleting --- parts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index e85688a..a400417 100644 --- a/parts/server.py +++ b/parts/server.py @@ -239,7 +239,7 @@ def alter(partID): @app.route('/parts/delete/') # @requires_auth def delete(partID): - if partID < 0: + if int(partID) < 0: abort(400) s = text('delete from parts where id=:id;') r = db_engine.execute(s, id=partID)