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:
Debanjum Singh Solanky 2022-06-17 16:28:56 +03:00
parent 1c5754bf95
commit 36495038dd

View file

@ -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 = ""