feat: fix uploads empty dir

This commit is contained in:
swve 2023-04-13 21:52:26 +02:00
parent 86645fa81a
commit 8d5f61102b

View file

@ -7,7 +7,7 @@ async def upload_video(video_file, activity_id):
if not os.path.exists("content/uploads/video"):
# create folder
os.mkdir("content/uploads/video")
os.makedirs("content/uploads/video")
# create folder
os.mkdir(f"content/uploads/video/{activity_id}")