fixed symlink dir not being fetched

I can't believe this was the issue...
This commit is contained in:
Jonas_Jones 2025-06-09 21:26:47 +02:00
parent 0142211c81
commit 9143d783ba
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
PORT = 8000
GRAB_SYMLINKS = true
SYMLINKS_DIR = "symlinks"
SYMLINK_DIR = "symlinks"
STATIC_SHARE_RESTRICTION = true

View file

@ -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)