summaryrefslogtreecommitdiffstats
path: root/jrnl/__version__.py
diff options
context:
space:
mode:
authorMicah Jerome Ellison <micah.jerome.ellison@gmail.com>2023-04-29 15:49:41 -0700
committerGitHub <noreply@github.com>2023-04-29 15:49:41 -0700
commit95836a7dd1192150ed8fb51d86c94a911dd5c601 (patch)
tree60d330654ec6433744d5756fbbb01466df49a54d /jrnl/__version__.py
parent88aa2491b012042eb553648bc8465b54fd389267 (diff)
Only read text files that look like entries when opening folder journal (#1697)
* Add text file that should be ignored to basic test folder journal. Makes tons of tests fail * Add additional files that should be ignored by FolderJournal * Ignore all files in folder journal except year/month/day.txt * Completely remake get_files in FolderJournal: - move get_files into FolderJournal class and add underscore prefix - create iterables to get for year/month folders and day files - make year/month/day file reading strict: only exact expected months and days out of all possible months and days * Restore accidentally-deleted self.sort() line * Use match instead of string comparison to be os-agnostic * Explicitly declare static methods * Filter with glob first for max performance * Explicitly check for valid dates in FolderJournal and add unit test * Remove unneeded jrnl import * Clean up method comment and add type hints * Add is_valid_date unit test * Elucidate comment Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
Diffstat (limited to 'jrnl/__version__.py')
0 files changed, 0 insertions, 0 deletions