Skip to content

Commit db230ce

Browse files
Re-lint files
1 parent 44fff95 commit db230ce

2 files changed

Lines changed: 24 additions & 21 deletions

File tree

cumulusci/tasks/bulkdata/mapping_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ class MappingStep(CCIDictModel):
9191
batch_size: int = None
9292
oid_as_pk: bool = False # this one should be discussed and probably deprecated
9393
record_type: Optional[str] = None # should be discussed and probably deprecated
94-
bulk_mode: Optional[Literal["Serial", "Parallel"]] = (
95-
None # default should come from task options
96-
)
94+
bulk_mode: Optional[
95+
Literal["Serial", "Parallel"]
96+
] = None # default should come from task options
9797
anchor_date: Optional[Union[str, date]] = None
9898
soql_filter: Optional[str] = None # soql_filter property
9999
select_options: Optional[SelectOptions] = Field(

cumulusci/tasks/bulkdata/step.py

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -883,30 +883,33 @@ def select_records(self, records):
883883
limit_clause = self._determine_limit_clause(total_num_records)
884884

885885
# Generate the SOQL query based on the selection strategy
886-
select_query, query_fields = (
887-
self.select_operation_executor.select_generate_query(
888-
sobject=self.sobject,
889-
fields=self.fields,
890-
user_filter=self.selection_filter or None,
891-
limit=limit_clause,
892-
offset=None,
893-
)
886+
(
887+
select_query,
888+
query_fields,
889+
) = self.select_operation_executor.select_generate_query(
890+
sobject=self.sobject,
891+
fields=self.fields,
892+
user_filter=self.selection_filter or None,
893+
limit=limit_clause,
894+
offset=None,
894895
)
895896

896897
# Execute the query and gather the records
897898
query_records = self._execute_soql_query(select_query, query_fields)
898899

899900
# Post-process the query results for this batch
900-
selected_records, insert_records, error_message = (
901-
self.select_operation_executor.select_post_process(
902-
load_records=records,
903-
query_records=query_records,
904-
fields=self.fields,
905-
num_records=total_num_records,
906-
sobject=self.sobject,
907-
weights=self.weights,
908-
threshold=self.threshold,
909-
)
901+
(
902+
selected_records,
903+
insert_records,
904+
error_message,
905+
) = self.select_operation_executor.select_post_process(
906+
load_records=records,
907+
query_records=query_records,
908+
fields=self.fields,
909+
num_records=total_num_records,
910+
sobject=self.sobject,
911+
weights=self.weights,
912+
threshold=self.threshold,
910913
)
911914

912915
# Log the number of selected and prepared for insertion records

0 commit comments

Comments
 (0)