|
@@ -258,7 +258,7 @@ def update_chat():
|
258
|
258
|
@application.get("/enum/<topic>")
|
259
|
259
|
def choices(topic):
|
260
|
260
|
if topic in ["img", "bg", "bg-video", "audio"]:
|
261
|
|
- choices = glob("static/media/{}/*.*".format(topic))
|
|
261
|
+ choices = sorted(glob("static/media/{}/*.*".format(topic)))
|
262
|
262
|
titles = [os.path.basename(c) for c in choices]
|
263
|
263
|
try:
|
264
|
264
|
descdir = json.load(open("static/media/{}.json".format(topic)))
|
|
@@ -305,7 +305,7 @@ def save():
|
305
|
305
|
return render_template("save.html",
|
306
|
306
|
suggestion=time.strftime(
|
307
|
307
|
"moment-%Y-%m-%d-%H.%M.%S"),
|
308
|
|
- files = [os.path.basename(path).rsplit(".",1)[0] for path in glob("archive/*.json")])
|
|
308
|
+ files = [os.path.basename(path).rsplit(".",1)[0] for path in sorted(glob("archive/*.json"))])
|
309
|
309
|
|
310
|
310
|
@application.route("/load", methods=['GET', 'POST'])
|
311
|
311
|
def load():
|
|
@@ -320,7 +320,7 @@ def load():
|
320
|
320
|
return redirect(url_for("home")+"#/oldest")
|
321
|
321
|
else:
|
322
|
322
|
return render_template("load.html",
|
323
|
|
- files = [os.path.basename(path).rsplit(".",1)[0] for path in glob("archive/*.json")])
|
|
323
|
+ files = [os.path.basename(path).rsplit(".",1)[0] for path in sorted(glob("archive/*.json"))])
|
324
|
324
|
|
325
|
325
|
@application.get("/embed-editor")
|
326
|
326
|
def embed_editor():
|