Commit 220197c4 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Set default creation date to today.

parent de419c5c
...@@ -179,7 +179,7 @@ class TodoBase(object): ...@@ -179,7 +179,7 @@ class TodoBase(object):
self.src = re.sub(r'^(\([A-Z]\) )?', \ self.src = re.sub(r'^(\([A-Z]\) )?', \
'x ' + today.isoformat() + ' ', self.src) 'x ' + today.isoformat() + ' ', self.src)
def set_creation_date(self, date): def set_creation_date(self, date=datetime.date.today()):
""" """
Sets the creation date of a todo. Should be passed a date object. Sets the creation date of a todo. Should be passed a date object.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment