From 74b7aa83a0ca89f3d2dfaf6d14f654669a06040a Mon Sep 17 00:00:00 2001 From: Dylan Garrett Date: Mon, 7 Jun 2021 07:58:48 -0700 Subject: Fix sort --- lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)): -- cgit v1.2.3-54-g00ecf