diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2014-07-29 00:33:43 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2014-07-29 00:46:50 +0200 |
commit | 47d500715a85879f6e3c6a0c27d2fa849f97efdc (patch) | |
tree | b0e5253385450bab8a135eb57e8ad296e0a04644 | |
parent | eb7cadd64faee9e654a9aee992d21d7bceb716ea (diff) | |
download | git-arr-fork-47d500715a85879f6e3c6a0c27d2fa849f97efdc.zip |
views/tree.html: Fix lambda syntax0.13
Some versions of bottle.py don't deal well with the "if" inside the lambda, so
work around it by just using comparison and simplifying the function.
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
-rw-r--r-- | views/tree.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/tree.html b/views/tree.html index aad7402..5edacb8 100644 --- a/views/tree.html +++ b/views/tree.html @@ -36,7 +36,7 @@ </h3> <table class="nice ls"> -% key_func = lambda (t, n, s): (0 if t == 'tree' else 1, n.raw) +% key_func = lambda (t, n, s): (t != 'tree', n.raw) % for type, name, size in sorted(tree.ls(dirname.raw), key = key_func): <tr class="{{type}}"> % if type == "blob": |