From 7a772967d0d50c0d4d20d4c70eac081dc24bd31f Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 8 Aug 2024 14:00:24 -0300 Subject: [PATCH] More linting. --- workbench | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/workbench b/workbench index 9fd1eea..c6dc5c1 100755 --- a/workbench +++ b/workbench @@ -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 ) @@ -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, @@ -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, @@ -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,