diff --git a/templates/patch.html b/templates/patch.html index adcacf0..3c244fc 100644 --- a/templates/patch.html +++ b/templates/patch.html @@ -13,7 +13,7 @@ - +
diff --git a/workbook.py b/workbook.py index f1d5590..5c2f940 100644 --- a/workbook.py +++ b/workbook.py @@ -1,11 +1,6 @@ from flask import Flask, render_template, request, redirect, url_for, jsonify from werkzeug.utils import secure_filename -# TODO: remove yaml dependencies -import yaml -from yaml.loader import SafeLoader - -import os import json from pathlib import Path @@ -211,9 +206,7 @@ def patch(instrument, name): (instrument, name)).fetchone() params = cursor.execute('SELECT * FROM patch_param WHERE patch_id = ?', - (cursor.lastrowid,)).fetchall() - - print(params) + (patch['id'],)).fetchall() instrument = cursor.execute('SELECT * FROM instruments WHERE slug = ?', (instrument,)).fetchone()