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
0de3e0a9
Commit
0de3e0a9
authored
Nov 24, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable so that it doesn't clash with method name
parent
1c11a56f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
topydo/lib/Sorter.py
topydo/lib/Sorter.py
+4
-4
No files found.
topydo/lib/Sorter.py
View file @
0de3e0a9
...
...
@@ -135,8 +135,8 @@ class Sorter(object):
oldresult
=
result
result
=
OrderedDict
()
for
oldkey
,
oldgroup
in
oldresult
.
items
():
for
key
,
group
in
groupby
(
oldgroup
,
function
):
newgroup
=
list
(
group
)
for
key
,
_
group
in
groupby
(
oldgroup
,
function
):
newgroup
=
list
(
_
group
)
if
not
isinstance
(
key
,
list
):
key
=
[
key
]
...
...
@@ -150,8 +150,8 @@ class Sorter(object):
result
[
newkey
]
=
newgroup
# sort all groups
for
key
,
group
in
result
.
items
():
result
[
key
]
=
self
.
sort
(
group
)
for
key
,
_
group
in
result
.
items
():
result
[
key
]
=
self
.
sort
(
_
group
)
return
result
...
...
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