mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-19 20:48:31 +02:00
Change 'datecounts' to 'dates'
This commit is contained in:
parent
4bf1da9959
commit
23eb0829fd
3 changed files with 6 additions and 6 deletions
|
@ -559,7 +559,7 @@ Feature: Custom formats
|
|||
Given we use the config "<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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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):
|
Loading…
Add table
Reference in a new issue