fix: sort series by float

This commit is contained in:
Dustin Steiner 2023-01-29 09:35:02 +00:00
parent f2902e8de5
commit 4b64b70753
No known key found for this signature in database
GPG key ID: 918D51522D8CB8F2

View file

@ -41,7 +41,7 @@ class BookSeriesBy(View):
unsortable_books.append(result)
list_results = (
sorted(numbered_books, key=lambda book: int(book.series_number))
sorted(numbered_books, key=lambda book: float(book.series_number))
+ sorted(
dated_books,
key=lambda book: book.first_published_date