Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
6e02b2fd
Commit
6e02b2fd
authored
Nov 29, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pylint'
parents
66de5976
bab67af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
topydo/lib/PostponeCommand.py
topydo/lib/PostponeCommand.py
+9
-8
No files found.
topydo/lib/PostponeCommand.py
View file @
6e02b2fd
...
...
@@ -42,16 +42,17 @@ class PostponeCommand(Command):
self
.
args
=
args
def
_get_offset
(
self
,
p_todo
):
offset
=
p_todo
.
tag_value
(
config
().
tag_due
(),
date
.
today
().
isoformat
())
offset_date
=
date_string_to_date
(
offset
)
def
execute
(
self
):
def
_get_offset
(
p_todo
):
offset
=
p_todo
.
tag_value
(
config
().
tag_due
(),
date
.
today
().
isoformat
())
offset_date
=
date_string_to_date
(
offset
)
if
offset_date
<
date
.
today
():
offset_date
=
date
.
today
()
if
offset_date
<
date
.
today
():
offset_date
=
date
.
today
()
return
offset_date
return
offset_date
def
execute
(
self
):
if
not
super
(
PostponeCommand
,
self
).
execute
():
return
False
...
...
@@ -62,7 +63,7 @@ class PostponeCommand(Command):
pattern
=
self
.
argument
(
1
)
# pdb.set_trace()
offset
=
self
.
_get_offset
(
todo
)
offset
=
_get_offset
(
todo
)
new_due
=
relative_date_to_date
(
pattern
,
offset
)
if
new_due
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment