mirror of
https://github.com/JonasunderscoreJones/selfhosted-overleaf-project-share.git
synced 2025-10-24 09:39:19 +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
|
PORT = 8000
|
||||||
GRAB_SYMLINKS = true
|
GRAB_SYMLINKS = true
|
||||||
SYMLINKS_DIR = "symlinks"
|
SYMLINK_DIR = "symlinks"
|
||||||
STATIC_SHARE_RESTRICTION = true
|
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 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 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):
|
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
|
# 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))]
|
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)
|
# Sort by last modified time (descending)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue