diff --git a/pydo/__init__.py b/pydo/__init__.py index 51eaabc..e3be9ed 100644 --- a/pydo/__init__.py +++ b/pydo/__init__.py @@ -4,7 +4,7 @@ from datetime import datetime as d class Task: - def __init__(self, text): + def __init__(self, text, id=None): # defaults self.completion_date = None self.creation_date = None @@ -15,7 +15,7 @@ class Task: self.contexts = [] self.specials = [] # can be used by external applications. is not included in the self.__str__() function - self.id = None + self.id = id arguments = text.split(' ') counter = 0 diff --git a/setup.py b/setup.py index 15c7e21..7c9075f 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup(name="pydo.txt", - version="1.1", + version="1.2", description="A module to parse todo.txt tasks", author="Alvie Rahman", url="https://github.com/alvierahman90/pydo.txt",