mirror of
https://github.com/JonasunderscoreJones/selfhosted-overleaf-project-share.git
synced 2025-10-22 16:49:18 +02:00
fixed symlink dir not being fetched
I can't believe this was the issue...
This commit is contained in:
parent
0142211c81
commit
9143d783ba
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
PORT = 8000
|
||||
GRAB_SYMLINKS = true
|
||||
SYMLINKS_DIR = "symlinks"
|
||||
SYMLINK_DIR = "symlinks"
|
||||
STATIC_SHARE_RESTRICTION = true
|
2
serve.py
2
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue