Skip to content

Commit

Permalink
Do not clear ChangedEntityLocale during a sync with commit=False
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Jan 16, 2025
1 parent 2720b89 commit 0d77781
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[mypy]
plugins =
mypy_django_plugin.main

[mypy.plugins.django-stubs]
django_settings_module = "pontoon.settings"
3 changes: 2 additions & 1 deletion pontoon/sync/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def sync_project(
removed_paths,
now,
)
if commit:
db_changes.delete()

db_changes.delete()
checkouts.source.repo.last_synced_revision = checkouts.source.commit
if checkouts.target != checkouts.source:
checkouts.target.repo.last_synced_revision = checkouts.target.commit
Expand Down

0 comments on commit 0d77781

Please sign in to comment.