projects
/
pywienerlinien
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Departure object changes, tests, small fix
[pywienerlinien]
/
gotovienna
/
utils.py
diff --git
a/gotovienna/utils.py
b/gotovienna/utils.py
index
c498288
..
51940a6
100644
(file)
--- a/
gotovienna/utils.py
+++ b/
gotovienna/utils.py
@@
-9,3
+9,8
@@
def ingreen(x):
def inblue(x):
return '\033[94m' + x + '\033[0m'
+def sort_departures(dep):
+ #print 'sorting ...'
+ d = sorted(dep, lambda x, y: cmp(x['departure'], y['departure']))
+ #print map(lambda x: x['departure'], d)
+ return d