|
|
@ -119,6 +119,8 @@ def alter(partID):
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/parts/delete/<partID>')
|
|
|
|
@app.route('/parts/delete/<partID>')
|
|
|
|
def delete(partID):
|
|
|
|
def delete(partID):
|
|
|
|
|
|
|
|
if partID < 0:
|
|
|
|
|
|
|
|
abort(400)
|
|
|
|
s = text('delete from parts where id=:id;')
|
|
|
|
s = text('delete from parts where id=:id;')
|
|
|
|
r = db_engine.execute(s, id=partID)
|
|
|
|
r = db_engine.execute(s, id=partID)
|
|
|
|
return '{"status":"ok"}'
|
|
|
|
return '{"status":"ok"}'
|
|
|
|