Journals¶
Process logseq journals.
Classes:
| Name | Description |
|---|---|
JournalSets |
Class to hold sets of journal dates. |
LogseqJournals |
LogseqJournals class to handle journal files and their processing. |
JournalSets(all_journals: list[datetime] = list(), existing: list[datetime] = list(), missing: list[datetime] = list(), timeline: list[datetime] = list())
dataclass
¶
Class to hold sets of journal dates.
LogseqJournals(index: FileIndex, dangling_links: set[str], sets: JournalSets = JournalSets(), dangling: dict[str, list[datetime]] = (lambda: defaultdict(list))(), timeline_stats: dict[str, Any] = dict())
dataclass
¶
LogseqJournals class to handle journal files and their processing.
Methods:
| Name | Description |
|---|---|
__post_init__ |
Initialize the LogseqJournals class. |
__len__ |
Return the number of processed keys. |
process |
Process journal keys to build the complete timeline and detect missing entries. |
build_complete_timeline |
Build a complete timeline of journal entries, filling in any missing dates. |
get_dangling_journals_outside_range |
Check for dangling journals that are outside the range of the complete timeline. |
Attributes:
| Name | Type | Description |
|---|---|---|
report |
dict[str, Any]
|
Get a report of the journal processing results. |
report: dict[str, Any]
property
¶
Get a report of the journal processing results.
__post_init__() -> None
¶
Initialize the LogseqJournals class.
__len__() -> int
¶
Return the number of processed keys.
process() -> None
¶
Process journal keys to build the complete timeline and detect missing entries.
build_complete_timeline(dangling_journals: list[datetime]) -> None
¶
Build a complete timeline of journal entries, filling in any missing dates.
get_dangling_journals_outside_range(dangling_journals: list[datetime]) -> None
¶
Check for dangling journals that are outside the range of the complete timeline.