From 368952c35a4e746936f39a058c58ba72dcb54b86 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Mon, 3 Oct 2022 11:00:50 +0200 Subject: [PATCH] params eeh --- templates/patch.html | 2 +- workbook.py | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) 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()