From 487917b3aa293442604a09e7e21c6c9600172e59 Mon Sep 17 00:00:00 2001 From: Shuichiro MAKIGAKI Date: Sun, 3 Oct 2021 00:29:50 +0900 Subject: [PATCH] Fix print-format error --- mendeley_cli/__init__.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mendeley_cli/__init__.py b/mendeley_cli/__init__.py index 1e18b9b..a57013e 100644 --- a/mendeley_cli/__init__.py +++ b/mendeley_cli/__init__.py @@ -88,7 +88,10 @@ def print_table(dataset: Dataset, print_format): fmt = print_format if fmt is None: fmt = 'cli' - print(dataset.export(fmt, tablefmt='simple')) + if fmt == 'cli': + print(dataset.export(fmt, tablefmt='simple')) + else: + print(dataset.export(fmt)) @click.group(context_settings={'max_content_width': 120}) diff --git a/setup.py b/setup.py index d79e002..9d599de 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='mendeley-cli', - version='0.1.3', + version='0.1.4', packages=find_packages(), include_package_data=True, install_requires=Path('requirements.txt').read_text().splitlines(),