mirror of https://github.com/dbcli/pgcli
Show status in csv format.
This commit is contained in:
parent
eb6b98367b
commit
a0980e7241
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 21.5b0
|
||||
rev: 22.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
|
|
|
@ -1625,8 +1625,8 @@ def format_output(title, cur, headers, status, settings):
|
|||
|
||||
output = itertools.chain(output, formatted)
|
||||
|
||||
# Only print the status if it's not None and we are not producing CSV
|
||||
if status and table_format != "csv":
|
||||
# Only print the status if it's not None
|
||||
if status:
|
||||
output = itertools.chain(output, [format_status(cur, status)])
|
||||
|
||||
return output
|
||||
|
|
Loading…
Reference in New Issue