diff options
author | Philip Sargent <philip@Muscogee.localdomain> | 2020-05-24 01:57:06 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2020-05-24 20:56:27 +0100 |
commit | 50d753a87b5f6bc4fe31e222a37796cf903133f7 (patch) | |
tree | 885b01fa921893684b602c20392c1ef995e13482 /core/views_survex.py | |
parent | 35f85c55f14e707e37d822041e25bca2913f48c4 (diff) | |
download | troggle-50d753a87b5f6bc4fe31e222a37796cf903133f7.tar.gz troggle-50d753a87b5f6bc4fe31e222a37796cf903133f7.tar.bz2 troggle-50d753a87b5f6bc4fe31e222a37796cf903133f7.zip |
Convert codebase for python3 usage
Diffstat (limited to 'core/views_survex.py')
-rw-r--r-- | core/views_survex.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/views_survex.py b/core/views_survex.py index 1e6c1bf..7595ea9 100644 --- a/core/views_survex.py +++ b/core/views_survex.py @@ -266,8 +266,7 @@ def survexcaveslist(request): subdircaves = [ ] # first sort the file list - fnumlist = [ (-int(re.match(r"\d*", f).group(0) or "0"), f) for f in os.listdir(cavesdir) ] - fnumlist.sort() + fnumlist = sorted([ (-int(re.match(r"\d*", f).group(0) or "0"), f) for f in os.listdir(cavesdir) ]) print(fnumlist) |