mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Fix storing parsed CLOSED date in OrgNode
The CLOSED date was getting parsed but not stored Adding setClosed at start also fixed the issue
This commit is contained in:
parent
1c5754bf95
commit
36495038dd
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,7 @@ def makelist(filename):
|
|||
heading = ""
|
||||
bodytext = ""
|
||||
tags = set() # set of all tags in headline
|
||||
closed_date = ''
|
||||
sched_date = ''
|
||||
deadline_date = ''
|
||||
nodelist = []
|
||||
|
@ -69,6 +70,9 @@ def makelist(filename):
|
|||
if hdng:
|
||||
if heading: # we are processing a heading line
|
||||
thisNode = Orgnode(level, heading, bodytext, tags)
|
||||
if closed_date:
|
||||
thisNode.setClosed(closed_date)
|
||||
closed_date = ''
|
||||
if sched_date:
|
||||
thisNode.setScheduled(sched_date)
|
||||
sched_date = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue