Skip to content

Commit

Permalink
Fix precommit flagged issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Feb 7, 2024
1 parent 7525175 commit 8428b27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions connector_jira/components/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _create_data(self, map_record, **kwargs):
return map_record.values(
for_create=True,
external_updated_at=self._get_external_updated_at(),
**kwargs
**kwargs,
)

@contextmanager
Expand Down Expand Up @@ -489,8 +489,9 @@ def run(self, timestamp, force=False, **kwargs):

number = self._handle_records(records, force=force)

return _("Batch from {} UTC to {} UTC generated {} imports").format(
original_timestamp_value, next_timestamp_value, number
return _(
f"Batch from {original_timestamp_value} UTC to {next_timestamp_value} "
f"UTC generated {number} imports"
)

def _handle_records(self, records, force=False):
Expand Down
9 changes: 5 additions & 4 deletions connector_jira/models/account_analytic_line/deleter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ def run(self, timestamp, **kwargs):

timestamp._update_timestamp(next_timestamp_value)

number = self._handle_records(records)
self._handle_records(records)

return _("Batch from {} UTC to {} UTC " "generated {} delete jobs").format(
original_timestamp_value, next_timestamp_value, number
return _(
f"Batch from {original_timestamp_value} UTC to {next_timestamp_value} UTC "
"generated {number} delete jobs"
)

def _handle_records(self, records):
Expand All @@ -67,7 +68,7 @@ def _delete_record(self, record_id, **kwargs):
"""Delay the delete of the records"""
self.model.with_delay(
description=_("Delete a local worklog which has " "been deleted on JIRA"),
**kwargs
**kwargs,
).delete_record(
self.backend_record,
record_id,
Expand Down

0 comments on commit 8428b27

Please sign in to comment.