From 9143d783ba3f150d1bfb8e6725137df100516cfb Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Mon, 9 Jun 2025 21:26:47 +0200 Subject: [PATCH] fixed symlink dir not being fetched I can't believe this was the issue... --- .env.defaults | 2 +- serve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.defaults b/.env.defaults index 661e585..ea98216 100644 --- a/.env.defaults +++ b/.env.defaults @@ -1,4 +1,4 @@ PORT = 8000 GRAB_SYMLINKS = true -SYMLINKS_DIR = "symlinks" +SYMLINK_DIR = "symlinks" STATIC_SHARE_RESTRICTION = true \ No newline at end of file diff --git a/serve.py b/serve.py index 83f50fe..89dfc4b 100644 --- a/serve.py +++ b/serve.py @@ -31,7 +31,7 @@ def get_project_directory(project_id): if GRAB_SYMLINKS and not os.path.exists(project_dir): # If the project does not exist in the projects dir, check if it exists in the symlinks dir if not os.path.exists(SYMLINK_DIR) or not os.path.isdir(SYMLINK_DIR): - return None + return "" # Find the symlink directory that starts with the project_id symlink_dirs = [d for d in os.listdir(SYMLINK_DIR) if os.path.isdir(os.path.join(SYMLINK_DIR, d))] # Sort by last modified time (descending)