From 05842e102aed984decc1192527a8f1172df620dc Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 3 Sep 2023 08:27:07 +0200 Subject: [PATCH] Update version in pyproject.toml, fix count assignment in main() - Update version in pyproject.toml to 0.1.1 - Fix count assignment in main() to use ternary operator instead of if-else statement --- pyproject.toml | 2 +- src/kalente/__main__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 23123cb..f4de460 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "kalente" -version = "0.1.0" +version = "0.1.1" authors = [ { name="Kumi Mitterer", email="kalente@kumi.email" }, ] diff --git a/src/kalente/__main__.py b/src/kalente/__main__.py index 13a11f5..b22367d 100644 --- a/src/kalente/__main__.py +++ b/src/kalente/__main__.py @@ -171,8 +171,11 @@ def main(): pages = [] + count = 1 + if args.count: count = args.count + elif args.end_date: end_date = parse(args.end_date).date()