Fixed --print to work with {tab}
This commit is contained in:
@@ -89,4 +89,4 @@ def dump(
|
||||
for rendered_template in rendered_templates:
|
||||
if not rendered_template:
|
||||
continue
|
||||
rich_click_echo(rendered_template)
|
||||
print(rendered_template)
|
||||
|
||||
@@ -414,7 +414,7 @@ def query(
|
||||
for rendered_template in rendered_templates:
|
||||
if not rendered_template:
|
||||
continue
|
||||
rich_click_echo(rendered_template)
|
||||
print(rendered_template)
|
||||
|
||||
if not quiet:
|
||||
print_photo_info(photos, cli_json or json_, print_func=click.echo)
|
||||
|
||||
@@ -63,9 +63,9 @@ def test_dump_print(photos):
|
||||
db_path,
|
||||
"--deleted",
|
||||
"--print",
|
||||
"{uuid}_{photo.original_filename}",
|
||||
"{uuid}{tab}{photo.original_filename}",
|
||||
],
|
||||
)
|
||||
assert result.exit_code == 0
|
||||
for photo in photos:
|
||||
assert f"{photo.uuid}_{photo.original_filename}" in result.output
|
||||
assert f"{photo.uuid}\t{photo.original_filename}" in result.output
|
||||
|
||||
Reference in New Issue
Block a user