From a0980e7241b01aa092ae3741261663785525c661 Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sun, 22 May 2022 20:40:58 -0700 Subject: [PATCH] Show status in csv format. --- .pre-commit-config.yaml | 2 +- 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