|
|
@ -1,11 +1,6 @@
|
|
|
|
from flask import Flask, render_template, request, redirect, url_for, jsonify
|
|
|
|
from flask import Flask, render_template, request, redirect, url_for, jsonify
|
|
|
|
from werkzeug.utils import secure_filename
|
|
|
|
from werkzeug.utils import secure_filename
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: remove yaml dependencies
|
|
|
|
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
from yaml.loader import SafeLoader
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
from pathlib import Path
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
|
@ -211,9 +206,7 @@ def patch(instrument, name):
|
|
|
|
(instrument, name)).fetchone()
|
|
|
|
(instrument, name)).fetchone()
|
|
|
|
|
|
|
|
|
|
|
|
params = cursor.execute('SELECT * FROM patch_param WHERE patch_id = ?',
|
|
|
|
params = cursor.execute('SELECT * FROM patch_param WHERE patch_id = ?',
|
|
|
|
(cursor.lastrowid,)).fetchall()
|
|
|
|
(patch['id'],)).fetchall()
|
|
|
|
|
|
|
|
|
|
|
|
print(params)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
instrument = cursor.execute('SELECT * FROM instruments WHERE slug = ?',
|
|
|
|
instrument = cursor.execute('SELECT * FROM instruments WHERE slug = ?',
|
|
|
|
(instrument,)).fetchone()
|
|
|
|
(instrument,)).fetchone()
|
|
|
|