Skip to content

Commit 7e35769

Browse files
authoredApr 2, 2025··
Do not commit pretranslations with warnings (#3610)
1 parent 0e56272 commit 7e35769

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

Diff for: ‎pontoon/sync/core/translations_to_repo.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ def update_changed_resources(
215215
locale__in=[locale.pk for locale in locales],
216216
active=True,
217217
)
218-
.filter(Q(approved=True) | Q(pretranslated=True) | Q(fuzzy=True))
218+
.filter(
219+
Q(approved=True)
220+
| Q(pretranslated=True, warnings__isnull=True)
221+
| Q(fuzzy=True)
222+
)
219223
.exclude(approved_date__gt=now) # includes approved_date = None
220224
.select_related("entity")
221225
)

0 commit comments

Comments
 (0)