Explorar o código

fix text2zip.py

tomoya hai 1 mes
pai
achega
9ff34c27dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/app/app/api/api_v1/endpoints/text2zip.py

+ 1 - 1
backend/app/app/api/api_v1/endpoints/text2zip.py

@@ -188,7 +188,7 @@ def generate_video(
         def remove_zip():
             if os.path.exists(f'{output_dir}/{dir.name}.zip'):
                 os.remove(f'{output_dir}/{dir.name}.zip')
-        current_user = crud.user(db, id=0)
+        current_user = crud.user.get(db, id=0)
         video_create = schemas.VideoCreate(title="guest", progress_state="PENDING", stored_filename=dir.name)
         video = crud.video.create_with_owner(db=db, obj_in=video_create, owner_id=current_user.id)
         return_msg = {"video_message":"accepted", "accepted":True}