diff --git a/dsaps/cli.py b/dsaps/cli.py index 7c5d80d..933c79a 100644 --- a/dsaps/cli.py +++ b/dsaps/cli.py @@ -219,7 +219,5 @@ def reconcile(ctx, metadata_csv, output_directory, content_directory, file_type) no_metadata = set(file_ids) - set(file_matches) helpers.create_csv_from_list(no_metadata, f"{output_directory}no_metadata") helpers.create_csv_from_list(no_files, f"{output_directory}no_files") - helpers.create_csv_from_list( - metadata_matches, f"{output_directory}metadata_matches" - ) + helpers.create_csv_from_list(metadata_matches, f"{output_directory}metadata_matches") helpers.update_metadata_csv(metadata_csv, output_directory, metadata_matches) diff --git a/dsaps/models.py b/dsaps/models.py index 3741980..0bb7989 100644 --- a/dsaps/models.py +++ b/dsaps/models.py @@ -256,9 +256,7 @@ def metadata_from_csv_row(cls, row, field_map): ] ) else: - metadata.append( - MetadataEntry(key=f, value=field, language=language) - ) + metadata.append(MetadataEntry(key=f, value=field, language=language)) return cls( metadata=metadata, file_identifier=file_identifier,