From 8ada48e062eaaa11b412310cc3db5d5888429b97 Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Mon, 6 Dec 2021 14:57:16 +0100 Subject: [PATCH] webgen v4.0.1 + Selectionlist sorted --- webgen.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webgen.py b/webgen.py index 3029b61..9aae5ba 100755 --- a/webgen.py +++ b/webgen.py @@ -52,9 +52,12 @@ def edit(headline): # Select a topic for the new post or reedit an existing one def selectfile(): # Put all .md files in sourcefolder into list with a format, which dialog can eat. - zahl = 0 + + filelist = glob.glob("*.md") + filelist.sort() tabelle = [] - for zeile in glob.glob("*.md"): + zahl = 0 + for zeile in filelist: tabelle.insert(zahl, (str(zahl), zeile)) zahl += 1