Conner Panarella
09/09/2024, 9:01 PMvisch
09/09/2024, 11:51 PMEdgar Ramírez (Arch.dev)
09/09/2024, 11:58 PMConner Panarella
09/10/2024, 2:01 AMConner Panarella
09/10/2024, 2:31 PMdef _sync_records( # noqa: C901
self,
context: types.Context | None = None,
*,
write_messages: bool = True,
) -> t.Generator[dict, t.Any, t.Any]:
yield from super()._sync_records(context=context, write_messages=write_messages)
if write_messages and self.selected:
state_dict = self.get_context_state(context)
increment_state(
state_dict,
replication_key=self.replication_key,
latest_record={self.replication_key: self.change_tracking_current_version},
is_sorted=self.is_sorted,
check_sorted=self.check_sorted,
)
Edgar Ramírez (Arch.dev)
09/10/2024, 4:43 PM