mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +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:
@@ -56,6 +56,7 @@ def makelist(filename):
|
|||||||
heading = ""
|
heading = ""
|
||||||
bodytext = ""
|
bodytext = ""
|
||||||
tags = set() # set of all tags in headline
|
tags = set() # set of all tags in headline
|
||||||
|
closed_date = ''
|
||||||
sched_date = ''
|
sched_date = ''
|
||||||
deadline_date = ''
|
deadline_date = ''
|
||||||
nodelist = []
|
nodelist = []
|
||||||
@@ -69,6 +70,9 @@ def makelist(filename):
|
|||||||
if hdng:
|
if hdng:
|
||||||
if heading: # we are processing a heading line
|
if heading: # we are processing a heading line
|
||||||
thisNode = Orgnode(level, heading, bodytext, tags)
|
thisNode = Orgnode(level, heading, bodytext, tags)
|
||||||
|
if closed_date:
|
||||||
|
thisNode.setClosed(closed_date)
|
||||||
|
closed_date = ''
|
||||||
if sched_date:
|
if sched_date:
|
||||||
thisNode.setScheduled(sched_date)
|
thisNode.setScheduled(sched_date)
|
||||||
sched_date = ""
|
sched_date = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user