forked from server/soundboard
Sort tags alphabetically
This commit is contained in:
parent
35e6337d20
commit
eb549417db
@ -44,7 +44,7 @@ def index(sound=None, text=None, video=None):
|
|||||||
sounds = [os.fsencode(file).decode() for file in os.listdir(config.path)]
|
sounds = [os.fsencode(file).decode() for file in os.listdir(config.path)]
|
||||||
sounds = sorted(sounds)
|
sounds = sorted(sounds)
|
||||||
|
|
||||||
tags = queryDB("SELECT name FROM tag")
|
tags = queryDB("SELECT name FROM tag ORDER BY name COLLATE NOCASE")
|
||||||
|
|
||||||
if sound is not None and sound in sounds:
|
if sound is not None and sound in sounds:
|
||||||
subprocess.Popen(["omxplayer", os.path.join(config.path, sound).encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
subprocess.Popen(["omxplayer", os.path.join(config.path, sound).encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user