Replace resolution tuple with dataclass

This commit is contained in:
2022-08-08 11:23:49 +02:00
parent 0212937aa1
commit 29bca4dd18
4 changed files with 23 additions and 14 deletions

View File

@ -61,10 +61,6 @@ async def upload_file(file: UploadFile = File(...)) -> Dict[str, str]:
async def remove_illegal_chars(filename: str) -> str:
"""Remove illegal characters from the filename.
Space is replaced with a dot.
"*, ", <, >, △, 「, 」, {, }, |, ^, ;, /, ?, :, @, &, =, +, $, ,," are removed.
Args:
filename: The filename to remove illegal characters from.