fixed code implicit special and ran black for CI
This commit is contained in:
@@ -232,13 +232,16 @@ def get_crosswalk_fields(answer_dicts: list, constants: Constants):
|
||||
to_field_answer_list.append(
|
||||
individual_from_field_value
|
||||
)
|
||||
|
||||
|
||||
# Assign the result: convert to string if it's a single-value field with one element
|
||||
if to_field_name in SINGLE_VALUE_FIELDS and len(to_field_answer_list) == 1:
|
||||
if (
|
||||
to_field_name in SINGLE_VALUE_FIELDS
|
||||
and len(to_field_answer_list) == 1
|
||||
):
|
||||
answer_dict[to_field_name] = to_field_answer_list[0]
|
||||
else:
|
||||
answer_dict[to_field_name] = to_field_answer_list
|
||||
|
||||
|
||||
# DO NOT update from_field_name - preserve its original format
|
||||
# The crosswalk should only create/update the target field (to_field_name),
|
||||
# not modify the source field (from_field_name)
|
||||
|
||||
Reference in New Issue
Block a user