From 23eb0829fd6befd7b1be6c0501ce75de2162381b Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Sun, 10 Jan 2021 01:35:54 +0200 Subject: [PATCH] Change 'datecounts' to 'dates' --- features/format.feature | 2 +- jrnl/plugins/__init__.py | 4 ++-- jrnl/plugins/{datecount_exporter.py => dates_exporter.py} | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename jrnl/plugins/{datecount_exporter.py => dates_exporter.py} (89%) diff --git a/features/format.feature b/features/format.feature index 774aa6e1..14c78644 100644 --- a/features/format.feature +++ b/features/format.feature @@ -559,7 +559,7 @@ Feature: Custom formats Given we use the config ".yaml" And we use the password "test" if prompted When we run "jrnl 2020-08-31 01:01: Hi." - And we run "jrnl --format datecount" + And we run "jrnl --format dates" Then the output should be """ 2020-08-29, 1 diff --git a/jrnl/plugins/__init__.py b/jrnl/plugins/__init__.py index 1d09d3aa..ad174f0b 100644 --- a/jrnl/plugins/__init__.py +++ b/jrnl/plugins/__init__.py @@ -8,7 +8,7 @@ from .jrnl_importer import JRNLImporter from .json_exporter import JSONExporter from .markdown_exporter import MarkdownExporter from .tag_exporter import TagExporter -from .datecount_exporter import DatecountExporter +from .dates_exporter import DatesExporter from .template_exporter import __all__ as template_exporters from .text_exporter import TextExporter from .xml_exporter import XMLExporter @@ -18,7 +18,7 @@ __exporters = [ JSONExporter, MarkdownExporter, TagExporter, - DatecountExporter, + DatesExporter, TextExporter, XMLExporter, YAMLExporter, diff --git a/jrnl/plugins/datecount_exporter.py b/jrnl/plugins/dates_exporter.py similarity index 89% rename from jrnl/plugins/datecount_exporter.py rename to jrnl/plugins/dates_exporter.py index ff9cef52..d11e527c 100644 --- a/jrnl/plugins/datecount_exporter.py +++ b/jrnl/plugins/dates_exporter.py @@ -7,11 +7,11 @@ from collections import Counter from .text_exporter import TextExporter -class DatecountExporter(TextExporter): +class DatesExporter(TextExporter): """This Exporter lists dates and their respective counts, for heatingmapping etc.""" - names = ["datecount"] - extension = "datecount" + names = ["dates"] + extension = "dates" @classmethod def export_entry(cls, entry):