Spaces:
Sleeping
Sleeping
fix bug
Browse files
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
|
300 |
-
trs = str(
|
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):
|