Commit 6e02b2fd authored by Bram Schoenmakers's avatar Bram Schoenmakers

Merge branch 'pylint'

parents 66de5976 bab67af3
...@@ -42,16 +42,17 @@ class PostponeCommand(Command): ...@@ -42,16 +42,17 @@ class PostponeCommand(Command):
self.args = args self.args = args
def _get_offset(self, p_todo): def execute(self):
offset = p_todo.tag_value(config().tag_due(), date.today().isoformat()) def _get_offset(p_todo):
offset_date = date_string_to_date(offset) offset = p_todo.tag_value(
config().tag_due(), date.today().isoformat())
offset_date = date_string_to_date(offset)
if offset_date < date.today(): if offset_date < date.today():
offset_date = date.today() offset_date = date.today()
return offset_date return offset_date
def execute(self):
if not super(PostponeCommand, self).execute(): if not super(PostponeCommand, self).execute():
return False return False
...@@ -62,7 +63,7 @@ class PostponeCommand(Command): ...@@ -62,7 +63,7 @@ class PostponeCommand(Command):
pattern = self.argument(1) pattern = self.argument(1)
# pdb.set_trace() # pdb.set_trace()
offset = self._get_offset(todo) offset = _get_offset(todo)
new_due = relative_date_to_date(pattern, offset) new_due = relative_date_to_date(pattern, offset)
if new_due: if new_due:
......
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