tomoya 7 месяцев назад
Родитель
Сommit
d7eca43400
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      backend/app/app/api/api_v1/endpoints/videos.py

+ 10 - 10
backend/app/app/api/api_v1/endpoints/videos.py

@@ -141,7 +141,7 @@ def upload_plot(
         'message':f'cloud.choozmo.com \
                     Video \
                     user: {current_user.id}\n \
-                    video: {video_data['id']}\n \
+                    video: {video_data["id"]}\n \
                     state: queuing'     # 設定要發送的訊息
     }
     data = requests.post(LINE_URL, headers=headers, data=data) 
@@ -172,9 +172,9 @@ async def wait_finish(video_data:dict):
     data = {
         'message':f'cloud.choozmo.com \
                     Video \
-                    user: {video_data['owner_id']}\n \
-                    membership: {video_data['membership_status']}\n \
-                    video: {video_data['id']}\n \
+                    user: {video_data["owner_id"]}\n \
+                    membership: {video_data["membership_status"]}\n \
+                    video: {video_data["id"]}\n \
                     state: start'     # 設定要發送的訊息
     }
     data = requests.post(LINE_URL, headers=headers, data=data) 
@@ -200,9 +200,9 @@ async def wait_finish(video_data:dict):
         data = {
             'message':f'cloud.choozmo.com \
                         Video \
-                        user: {video_data['owner_id']}\n \
-                        membership: {video_data['membership_status']}\n \
-                        video: {video_data['id']}\n \
+                        user: {video_data["owner_id"]}\n \
+                        membership: {video_data["membership_status"]}\n \
+                        video: {video_data["id"]}\n \
                         state: success'     # 設定要發送的訊息
         }
         data = requests.post(LINE_URL, headers=headers, data=data) 
@@ -221,9 +221,9 @@ async def wait_finish(video_data:dict):
         data = {
             'message':f'cloud.choozmo.com \
                         Video \
-                        user: {video_data['owner_id']}\n \
-                        membership: {video_data['membership_status']}\n \
-                        video: {video_data['id']}\n \
+                        user: {video_data["owner_id"]}\n \
+                        membership: {video_data["membership_status"]}\n \
+                        video: {video_data["id"]}\n \
                         state: failure'     # 設定要發送的訊息
         }
         data = requests.post(LINE_URL, headers=headers, data=data)