aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDylan Garrett <dylan.garrett@gmail.com>2021-06-07 07:58:48 -0700
committerDylan Garrett <dylan.garrett@gmail.com>2021-06-07 23:07:01 -0700
commit74b7aa83a0ca89f3d2dfaf6d14f654669a06040a (patch)
tree814cc944d05650e966ddc43c96f4143a67e04850 /lib
parent53d8bcb0c29f5e7a8492ad715ca25930f997f352 (diff)
downloadroka-74b7aa83a0ca89f3d2dfaf6d14f654669a06040a.tar.gz
roka-74b7aa83a0ca89f3d2dfaf6d14f654669a06040a.zip
Fix sort
Diffstat (limited to 'lib')
-rw-r--r--lib/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.py b/lib/util.py
index a2f982d..1eb6af6 100644
--- a/lib/util.py
+++ b/lib/util.py
@@ -121,7 +121,7 @@ def generate_rss(request, books):
track_list.append(track)
else:
# we have populated and unique track values, use those
- key = lambda x: books[book]['files'][x]['track']
+ key = lambda x: int(books[book]['files'][x]['track'])
# populate XML attribute values required by Apple podcasts
for idx, f in enumerate(sorted(books[book]['files'], key=key)):