fix: Get site contents to use new dir
This commit is contained in:
parent
7ab3cfb54e
commit
e322b8bbe7
5
sites.py
5
sites.py
@ -114,7 +114,10 @@ def enable(name, enable):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def get_content(site):
|
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):
|
if not os.path.isdir(path):
|
||||||
return []
|
return []
|
||||||
files = os.listdir(path)
|
files = os.listdir(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user