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
671c2aee
Commit
671c2aee
authored
Oct 23, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call remove_tag with the current value, if available.
parent
dbaf20b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/TodoBase.py
lib/TodoBase.py
+2
-2
No files found.
lib/TodoBase.py
View file @
671c2aee
...
...
@@ -75,7 +75,7 @@ class TodoBase(object):
""" Adds a tag to the todo. """
self
.
set_tag
(
p_key
,
p_value
,
True
)
def
set_tag
(
self
,
p_key
,
p_value
=
""
,
p_force_add
=
False
,
p_old_value
=
None
):
def
set_tag
(
self
,
p_key
,
p_value
=
""
,
p_force_add
=
False
,
p_old_value
=
""
):
"""
Sets a occurrence of the tag identified by p_key. Sets an arbitrary
instance of the tag when the todo contains multiple tags with this key.
...
...
@@ -91,7 +91,7 @@ class TodoBase(object):
"""
if
p_value
==
""
:
self
.
remove_tag
(
p_key
)
self
.
remove_tag
(
p_key
,
p_old_value
)
return
value
=
p_old_value
if
p_old_value
else
self
.
tag_value
(
p_key
)
...
...
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