forked from server/soundboard
Fix SQL query for tag to include button name
This commit is contained in:
parent
03be396c87
commit
d52dede612
@ -109,9 +109,16 @@ LEFT OUTER JOIN (
|
|||||||
button_tags
|
button_tags
|
||||||
ON
|
ON
|
||||||
fk_tag = tag.id
|
fk_tag = tag.id
|
||||||
WHERE fk_button = 1
|
WHERE fk_button = (
|
||||||
|
SELECT
|
||||||
|
button.id
|
||||||
|
FROM
|
||||||
|
button
|
||||||
|
WHERE
|
||||||
|
button.file = ?
|
||||||
|
)
|
||||||
) AS checked
|
) AS checked
|
||||||
ON tag.id = checked.id""")
|
ON tag.id = checked.id""", (sound,))
|
||||||
print(tags)
|
print(tags)
|
||||||
|
|
||||||
return render_template("edit.html", sound=sound, tags=tags)
|
return render_template("edit.html", sound=sound, tags=tags)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user