mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fixes issue where now date was given
This commit is contained in:
parent
5236ca0c44
commit
123000ce41
1 changed files with 3 additions and 2 deletions
|
@ -3,11 +3,12 @@
|
|||
|
||||
import re
|
||||
import textwrap
|
||||
from datetime import datetime
|
||||
|
||||
class Entry:
|
||||
def __init__(self, journal, date=None, title="", body=""):
|
||||
self.journal = journal # Reference to journal mainly to access it's config
|
||||
self.date = date
|
||||
self.date = date or datetime.now()
|
||||
self.title = title.strip()
|
||||
self.body = body.strip()
|
||||
self.tags = self.parse_tags()
|
||||
|
|
Loading…
Add table
Reference in a new issue