params eeh

db
km0 2 years ago
parent 5ef14c0216
commit 368952c35a

@ -13,7 +13,7 @@
<script src="{{ url_for('static', filename='js/input-knobs.js') }}" defer></script>
<script src="{{ url_for('static', filename='js/panel.js') }}" defer></script>
<script src="{{ url_for('static', filename='js/patch.js') }}" defer></script>
<!-- <script src="{{ url_for('static', filename='js/patch.js') }}" defer></script> -->
</head>
<body>
<header>

@ -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()

Loading…
Cancel
Save