Skip to content

Commit

Permalink
Special-case Public projects for Locale stats calculation during tran…
Browse files Browse the repository at this point in the history
…slation actions (mozilla#3451)
  • Loading branch information
mathjazz authored Nov 20, 2024
1 parent 514c3bd commit 24f37e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pontoon/base/models/translated_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ def adjust_all_stats(self, *args, **kwargs):
self.adjust_stats(*args, **kwargs)
project.adjust_stats(*args, **kwargs)

if not project.system_project:
if (
not project.system_project
and project.visibility == Project.Visibility.PUBLIC
):
locale.adjust_stats(*args, **kwargs)

if project_locale:
Expand Down

0 comments on commit 24f37e5

Please sign in to comment.