Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].

## [Unreleased]

## [0.0.32] - 2025-11-12

### Fixed in 0.0.32

- `add_record` using a `record_id` with multiple consecutive spaces added the record but with only 1 space in `record_id`

## [0.0.31] - 2025-09-11

### Fixed in 0.0.31
Expand Down
9 changes: 3 additions & 6 deletions sz_tools/sz_command
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ CMDS_NOT_TO_SET_LAST_COMMAND = [
"response_to_file",
]


CONFIG_SETTINGS: Dict[str, Dict[str, Any]] = {
"format_json": {
"values": ["off", "on"],
Expand Down Expand Up @@ -286,7 +285,7 @@ class SzCmdShell(cmd.Cmd):
self.read_config()

# Create config file if one doesn't exist and write it again if it exists. read_config() merges DEFAULT_CONFIG
# with the config file incase new config settings are added to DEFAULT_CONFIG in a new release of the tool
# with the config file in case new config settings are added to DEFAULT_CONFIG in a new release of the tool
self.write_config()

# Acquire Senzing engines and information
Expand Down Expand Up @@ -2086,10 +2085,8 @@ class SzCmdShell(cmd.Cmd):

def remove_per_cmd_settings(self, cmd_line: str) -> str:
"""Remove any settings from a command"""
cmd_list = [c for c in cmd_line.split() if c.lower() not in PER_CMD_SETTINGS]
cmd_line_cleaned = " ".join(cmd_list)

return cmd_line_cleaned
cmd_list_clean = [c for c in self.parse(cmd_line) if c.lower() not in PER_CMD_SETTINGS]
return shlex.join(cmd_list_clean)

def parse(self, argument_string: str) -> List[str]:
"""Parses command arguments into a list of argument strings"""
Expand Down
Loading