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
bae4fa88
Commit
bae4fa88
authored
Jun 14, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Completed tasks have zero importance.
parent
df4eb74d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Importance.py
Importance.py
+2
-1
No files found.
Importance.py
View file @
bae4fa88
...
...
@@ -14,6 +14,7 @@ IMPORTANCE_VALUE = {'A': 3, 'B': 2, 'C': 1}
def
importance
(
p_todo
):
"""
Calculates the importance of the given task.
Returns an importance of zero when the task has been completed.
"""
result
=
2
...
...
@@ -37,4 +38,4 @@ def importance(p_todo):
if
p_todo
.
has_tag
(
Config
.
TAG_STAR
):
result
+=
1
return
result
return
result
if
not
p_todo
.
is_completed
()
else
0
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