diff options
author | Jordan <me@jordan.im> | 2021-06-07 23:59:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 23:59:42 -0700 |
commit | 1035ea7c0f97d68c35a2621da410b600bc464fbe (patch) | |
tree | 814cc944d05650e966ddc43c96f4143a67e04850 | |
parent | 53d8bcb0c29f5e7a8492ad715ca25930f997f352 (diff) | |
parent | 74b7aa83a0ca89f3d2dfaf6d14f654669a06040a (diff) | |
download | roka-1035ea7c0f97d68c35a2621da410b600bc464fbe.tar.gz roka-1035ea7c0f97d68c35a2621da410b600bc464fbe.zip |
Merge pull request #1 from dgarrett/fix-sort
Fix track sort
-rw-r--r-- | lib/util.py | 2 |
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)): |