We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d73312 commit b948263Copy full SHA for b948263
storage.py
@@ -23,7 +23,7 @@ async def get_text(self, file: UploadFile, key: str):
23
path = self.DATA_ROOT / f"upload/{now.year}/{now.month}/{now.day}/"
24
if not path.exists():
25
path.mkdir(parents=True)
26
- text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT).relative_to(self.DATA_ROOT)}"
+ text = f"{self.STATIC_URL}/{(path / f'{key}.{ext}').relative_to(self.DATA_ROOT)}"
27
return text
28
29
@staticmethod
0 commit comments