File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ async def list(
175175 query = sort_balls (sort , query )
176176 else :
177177 query = query .order_by ("-favorite" )
178+ query = query .order_by ("-id" ) # enforce a unique ordering to prevent mismatch during pagination
178179
179180 if not await query .aexists ():
180181 ball_txt = countryball .country if countryball else ""
Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ async def bulk_add(
345345 query = sort_balls (sort , query )
346346 if filter :
347347 query = filter_balls (filter , query , interaction .guild_id )
348+ query = query .order_by ("-id" ) # enforce a unique ordering to prevent mismatch during pagination
348349 if not await query .aexists ():
349350 await interaction .followup .send (f"No { settings .plural_collectible_name } found." , ephemeral = True )
350351 return
You can’t perform that action at this time.
0 commit comments