mirror of
https://github.com/alvierahman90/pydo.git
synced 2025-02-04 14:51:10 +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.projects = []
|
||||||
self.contexts = []
|
self.contexts = []
|
||||||
self.specials = []
|
self.specials = []
|
||||||
|
# can be used by external applications. is not included in the self.__str__() function
|
||||||
|
self.id = None
|
||||||
|
|
||||||
arguments = text.split(' ')
|
arguments = text.split(' ')
|
||||||
counter = 0
|
counter = 0
|
||||||
@ -28,8 +30,7 @@ class Task:
|
|||||||
self.priority = self.priority.upper()
|
self.priority = self.priority.upper()
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
# try to get completion date if done
|
# try to get completion date if task is marked as done
|
||||||
|
|
||||||
if self.done:
|
if self.done:
|
||||||
try:
|
try:
|
||||||
self.completion_date = d.strptime(arguments[counter],
|
self.completion_date = d.strptime(arguments[counter],
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@
|
|||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
setup(name="pydo.txt",
|
setup(name="pydo.txt",
|
||||||
version="1.0",
|
version="1.1",
|
||||||
description="A module to parse todo.txt tasks",
|
description="A module to parse todo.txt tasks",
|
||||||
author="Alvie Rahman",
|
author="Alvie Rahman",
|
||||||
url="https://github.com/alvierahman90/pydo.txt",
|
url="https://github.com/alvierahman90/pydo.txt",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user