deepsync commited on
Commit
5d25068
·
1 Parent(s): 2a98ee5
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -296,8 +296,8 @@ def get_traslators_assign(platform, video):
296
  pending_videos.extend(response_data)
297
  translator_pv_count = defaultdict(lambda: 0)
298
  for pv in pending_videos:
299
- if video.get("videoReviewInformation", {}).get("assignedTranslator") is not None:
300
- trs = str(video.get("videoReviewInformation", {}).get("assignedTranslator"))
301
  translator_pv_count[trs] += 1
302
 
303
  if len(translators):
 
296
  pending_videos.extend(response_data)
297
  translator_pv_count = defaultdict(lambda: 0)
298
  for pv in pending_videos:
299
+ if pv.get("videoReviewInformation", {}).get("assignedTranslator") is not None:
300
+ trs = str(pv.get("videoReviewInformation", {}).get("assignedTranslator"))
301
  translator_pv_count[trs] += 1
302
 
303
  if len(translators):