mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Merge 9bf3d8aceb
into e5fc8be2a8
This commit is contained in:
commit
7bb7ea4c98
2 changed files with 3 additions and 2 deletions
|
@ -166,7 +166,7 @@ class DayOne(Journal):
|
||||||
|
|
||||||
def editable_str(self) -> str:
|
def editable_str(self) -> str:
|
||||||
"""Turns the journal into a string of entries that can be edited
|
"""Turns the journal into a string of entries that can be edited
|
||||||
manually and later be parsed with eslf.parse_editable_str."""
|
manually and later be parsed with self.parse_editable_str."""
|
||||||
return "\n".join([f"{str(e)}\n# {e.uuid}\n" for e in self.entries])
|
return "\n".join([f"{str(e)}\n# {e.uuid}\n" for e in self.entries])
|
||||||
|
|
||||||
def _update_old_entry(self, entry: Entry, new_entry: Entry) -> None:
|
def _update_old_entry(self, entry: Entry, new_entry: Entry) -> None:
|
||||||
|
|
|
@ -224,7 +224,8 @@ class Journal:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tags(self) -> list[Tag]:
|
def tags(self) -> list[Tag]:
|
||||||
"""Returns a set of tuples (count, tag) for all tags present in the journal."""
|
"""Returns a list of Tag instances enumerating all the tags present in the
|
||||||
|
journal."""
|
||||||
# Astute reader: should the following line leave you as puzzled as me the first
|
# Astute reader: should the following line leave you as puzzled as me the first
|
||||||
# time I came across this construction, worry not and embrace the ensuing moment
|
# time I came across this construction, worry not and embrace the ensuing moment
|
||||||
# of enlightment.
|
# of enlightment.
|
||||||
|
|
Loading…
Add table
Reference in a new issue