diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2022-05-22 20:40:58 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2022-05-22 20:41:27 -0700 |
commit | a0980e7241b01aa092ae3741261663785525c661 (patch) | |
tree | 082141ba66e39a947d64cf9f82c6bd74eb23956c | |
parent | eb6b98367b5b994e0b12536f5487531ef28ea2c3 (diff) |
Show status in csv format.
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | pgcli/main.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca4e36bc..81909e13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 21.5b0 + rev: 22.3.0 hooks: - id: black diff --git a/pgcli/main.py b/pgcli/main.py index 2d7edfa0..e18f8065 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -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 |