mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Add check before creating compare_d
This commit is contained in:
parent
3c2f91ff60
commit
20e71946b7
1 changed files with 2 additions and 1 deletions
|
@ -225,6 +225,7 @@ class Journal:
|
|||
|
||||
# Create datetime object for comparison below
|
||||
# this approach allows different month formats
|
||||
if month or day or year:
|
||||
compare_d = time.parse(f"{month or 1}/{day or 1}/{year or 1}")
|
||||
|
||||
result = [
|
||||
|
|
Loading…
Add table
Reference in a new issue