Skip to content

Commit

Permalink
More linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Aug 8, 2024
1 parent be509ab commit 7a77296
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions workbench
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,13 @@ def create():
)

# Typed relation with display name fields.
elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name":
typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField()
elif (
field_definitions[custom_field]["field_type"]
== "typed_relation_display_name"
):
typed_relation_display_name_field = (
workbench_fields.TypedRelationDisplayNameField()
)
node = typed_relation_display_name_field.create(
config, field_definitions, node, row, custom_field
)
Expand Down Expand Up @@ -808,8 +813,13 @@ def update():
)

# Typed relation display name fields (currently, only taxonomy term).
elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name":
typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField()
elif (
field_definitions[custom_field]["field_type"]
== "typed_relation_display_name"
):
typed_relation_display_name_field = (
workbench_fields.TypedRelationDisplayNameField()
)
node = typed_relation_display_name_field.update(
config,
field_definitions,
Expand Down Expand Up @@ -1998,8 +2008,13 @@ def update_media() -> None:
)

# Typed relation display name fields (currently, only taxonomy term).
elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name":
typed_relation_display_name_field = workbench_fields.TypedRelationDisplayNameField()
elif (
field_definitions[custom_field]["field_type"]
== "typed_relation_display_name"
):
typed_relation_display_name_field = (
workbench_fields.TypedRelationDisplayNameField()
)
patch_request_json = typed_relation_display_name_field.update(
config,
field_definitions,
Expand Down Expand Up @@ -3271,8 +3286,13 @@ def update_terms():
)

# Typed relation display name fields (currently, only taxonomy term).
elif field_definitions[custom_field]["field_type"] == "typed_relation_display_name":
typed_relation_display_name_field = workbench_fields.TypedRelationDisplaynameField()
elif (
field_definitions[custom_field]["field_type"]
== "typed_relation_display_name"
):
typed_relation_display_name_field = (
workbench_fields.TypedRelationDisplaynameField()
)
term = typed_relation_display_name_field.update(
config,
field_definitions,
Expand Down

0 comments on commit 7a77296

Please sign in to comment.