Permalink
Browse files

moving the self.id into the base class

  • Loading branch information...
1 parent 9cbc9aa commit 446202645f49f50462e68ae77996814e22afa64f @zachseifts committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +0 −1 whatidid/commands.py
  2. +1 −0 whatidid/objects.py
View
1 whatidid/commands.py
@@ -131,7 +131,6 @@ class TodoShowCommand(BaseTodoCommand):
'''
def __init__(self, **kwargs):
- self.id = kwargs.get('id', '')
year, current_week, weekday = datetime.now().isocalendar()
week = kwargs.get('week', None)
if week is None:
View
1 whatidid/objects.py
@@ -77,6 +77,7 @@ class BaseTodoCommand(Command):
def __init__(self, **kwargs):
self.type = 'todo'
+ self.id = kwargs.get('id', '')
super(BaseTodoCommand, self).__init__(**kwargs)
def get_data_path(self, key, week=None):

0 comments on commit 4462026

Please sign in to comment.