Sort CheapShark deals by recency instead of deal rating
The bot polls periodically for new deals, but sorting by "Deal Rating" meant it always returned the same top-rated deals and would never discover new listings that aren't in the top 10 by rating. Sorting by "recent" ensures newly added or updated deals are seen on each poll. https://claude.ai/code/session_017eMsVwUopgmnEyd6JJedpV
This commit is contained in:
@@ -55,7 +55,7 @@ async def fetch_deals(
|
|||||||
params = {
|
params = {
|
||||||
"storeID": store_ids,
|
"storeID": store_ids,
|
||||||
"upperPrice": str(int(max_price)),
|
"upperPrice": str(int(max_price)),
|
||||||
"sortBy": "Deal Rating",
|
"sortBy": "recent",
|
||||||
"desc": "1",
|
"desc": "1",
|
||||||
"pageSize": str(page_size),
|
"pageSize": str(page_size),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user