Skip to content
Snippets Groups Projects
Verified Commit 5b647f14 authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Sort the projects properly

parent 88d99cb8
Branches
No related tags found
No related merge requests found
......@@ -20,7 +20,9 @@ shutil.copytree("static", "public/", dirs_exist_ok=True)
# Load projects
projects = []
for filename in os.listdir("templates/projects"):
files = os.listdir("templates/projects")
files.sort()
for filename in files:
filepath = os.path.join("templates", "projects", filename)
if os.path.isfile(filepath) and filepath.endswith(".json"):
# Load file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment