From e322b8bbe7a10143b16d3bc049a4cb9b00824212 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 23 Feb 2024 14:59:35 +1100 Subject: [PATCH] fix: Get site contents to use new dir --- sites.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sites.py b/sites.py index db37728..8dbd9ff 100644 --- a/sites.py +++ b/sites.py @@ -114,7 +114,10 @@ def enable(name, enable): return False def get_content(site): - path = f'uploads/{site}' + site = get_site(site) + id = site['id'] + + path = f'/var/www/{id}' if not os.path.isdir(path): return [] files = os.listdir(path)