mirror of
https://github.com/alvierahman90/pydo.git
synced 2025-01-12 02:04:25 +00:00
add id field for external program use
This commit is contained in:
parent
97966d2565
commit
62726ad687
@ -14,6 +14,8 @@ class Task:
|
||||
self.projects = []
|
||||
self.contexts = []
|
||||
self.specials = []
|
||||
# can be used by external applications. is not included in the self.__str__() function
|
||||
self.id = None
|
||||
|
||||
arguments = text.split(' ')
|
||||
counter = 0
|
||||
@ -28,8 +30,7 @@ class Task:
|
||||
self.priority = self.priority.upper()
|
||||
counter += 1
|
||||
|
||||
# try to get completion date if done
|
||||
|
||||
# try to get completion date if task is marked as done
|
||||
if self.done:
|
||||
try:
|
||||
self.completion_date = d.strptime(arguments[counter],
|
||||
|
Loading…
Reference in New Issue
Block a user