Merge branch 'main' into feat-user-auth-fief

This commit is contained in:
Koper
2023-08-17 22:20:16 +07:00
26 changed files with 265 additions and 174 deletions

View File

@@ -111,7 +111,9 @@ class Transcript(BaseModel):
out.close()
# move temporary file to final location
Path(tmp.name).rename(fn)
import shutil
shutil.move(tmp.name, fn.as_posix())
def unlink(self):
self.data_path.unlink(missing_ok=True)