tomoya hace 2 semanas
padre
commit
5eff8c0f1a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      backend/app/app/api/api_v1/endpoints/edm_saas_api.py

+ 2 - 2
backend/app/app/api/api_v1/endpoints/edm_saas_api.py

@@ -135,8 +135,8 @@ async def update_detect_info(
     response = supabase.table(VIDEO_TABLE).insert(video).execute()
     return_msg = {"video_message":"accepted", "accepted":True}
     video_data = response.data[0]
-    video_data['membership_status'] = "infinite" ##
-    video_data['available_time'] = 0 ##
+    video_data['membership_status'] = "normal" ##
+    video_data['available_time'] = 10000 if user.point>0 else 0 ##
     video_data['video_id'] = video_data['id']
     video_data['character'] = anchor
     video_data['anchor'] = anchor