From e46d8145a74e7f8e0d747a23102cb468ff1d53fa Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Wed, 27 May 2026 09:35:15 +1000 Subject: [PATCH] Install from git --- Dockerfile | 5 ++-- .../library/templates/library/item_list.html | 25 +++++++++++++------ 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc0df79..51442d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM alpine:latest ENV TARGET=/opt/polyphonic -ENV RELEASE=polyphonic-0.8.4-py3-none-any.whl +#ENV RELEASE=polyphonic-0.8.4-py3-none-any.whl +ENV RELEASE=git+https://gitea.tfconsulting.com.au/projects/polyphonic.git RUN apk add --no-cache python3 py3-pip git ghostscript sqlite @@ -10,7 +11,7 @@ WORKDIR /root RUN python3 -m venv ${TARGET} ENV PATH="${TARGET}/bin:$PATH" -COPY dist/${RELEASE} . +#COPY dist/${RELEASE} . RUN pip3 install ${RELEASE} --no-cache-dir RUN pip3 install gunicorn whitenoise diff --git a/polyphonic/library/templates/library/item_list.html b/polyphonic/library/templates/library/item_list.html index d465f60..7207fa5 100644 --- a/polyphonic/library/templates/library/item_list.html +++ b/polyphonic/library/templates/library/item_list.html @@ -65,7 +65,7 @@ - {% for tag, name in item.work.digital_parts %} @@ -112,16 +112,23 @@ const INSTRUMENTS = JSON.parse(document.getElementById('instruments').innerText); function updateParts() { - var inst = document.getElementById("instrument-name").value; + var inst = document.getElementById("instrument-name").value.toLowerCase(); window.localStorage.setItem('instrument-name', inst); + console.log("Changing to", inst); for (let i of INSTRUMENTS) { - if (i[1] === inst) inst = i[0]; + if (i[1].toLowerCase() === inst) { + inst = i[0]; + + break; + } } + console.log("Instrument code:", inst); let part = document.getElementById("part-preference").value; window.localStorage.setItem('part-preference', part); + console.log("Part preference:", part); selectParts(inst, part); @@ -132,10 +139,11 @@ function selectParts(inst, part) { let prefix = inst + "-" + part; - let instruments = document.getElementsByName("instruments"); - for(let i=0; i -{% endblock %} \ No newline at end of file +{% endblock %}