minor code improvement

This commit is contained in:
caryoscelus 2022-03-26 09:24:59 +00:00
parent ac49b589ef
commit 7658f57161
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ thread_pool_fs_batch = ThreadPool.ThreadPool(1, name="FS batch")
class SiteStorage(object):
def __init__(self, site, allow_create=True):
self.site = site
self.directory = "%s/%s" % (config.data_dir, self.site.address) # Site data diretory
self.directory = f'{config.data_dir}/{self.site.address}' # Site data diretory
self.allowed_dir = os.path.abspath(self.directory) # Only serve file within this dir
self.log = site.log
self.db = None # Db class