add setting port

This commit is contained in:
lan-air
2022-12-12 15:15:17 +08:00
parent 7a6a42e96a
commit a9fd997062
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ class FileSystemStorage:
async def delete_file(self, file):
filepath = self.DATA_ROOT / file['text'].lstrip(self.STATIC_URL + '/')
await asyncio.to_thread(os.remove, filepath)
async def delete_files(self, files):
for file in files:
if file['type'] != 'text':
@@ -42,4 +42,4 @@ class FileSystemStorage:
STORAGE_ENGINE = {
"filesystem": FileSystemStorage
}
}