From 7cd961d4523805a135daf90a17283e7451967638 Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Mon, 4 Jan 2021 03:04:01 +0200 Subject: [PATCH] Remove unnecessary datecount export condition --- jrnl/plugins/datecount_exporter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/jrnl/plugins/datecount_exporter.py b/jrnl/plugins/datecount_exporter.py index a420918a..0d3e6057 100644 --- a/jrnl/plugins/datecount_exporter.py +++ b/jrnl/plugins/datecount_exporter.py @@ -21,7 +21,5 @@ class DatecountExporter(TextExporter): def export_journal(cls, journal): """Returns dates and their frequencies for an entire journal.""" date_counts = get_date_counts(journal) - if not date_counts: - return "[No dates found in journal.]" result = "\n".join(f"{date}, {count}" for date, count in date_counts.items()) return result