We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03df2c commit b7e908dCopy full SHA for b7e908d
openlibrary/plugins/openlibrary/api.py
@@ -807,14 +807,17 @@ class opds_search(delegate.page):
807
def GET(self):
808
from pyopds2 import Catalog, Link, Metadata
809
810
- i = web.input(query="trending_score_hourly_sum:[1 TO *]", limit=25, page=1)
+ i = web.input(
811
+ query="trending_score_hourly_sum:[1 TO *]", limit=25, page=1, sort=None
812
+ )
813
provider = get_opds_data_provider()
814
catalog = Catalog.create(
815
metadata=Metadata(title=_("Search Results")),
816
response=provider.search(
817
query=i.query,
818
limit=int(i.limit),
819
offset=(int(i.page) - 1) * int(i.limit),
820
+ sort=i.sort,
821
),
822
links=[
823
Link(
0 commit comments