Skip to content

Commit

Permalink
Sort PROPER before seeders
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog authored and p0psicles committed May 19, 2016
1 parent 9b59106 commit 394f6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/manual_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def get_provider_cache_results(indexer, show_all_results=None, perform_search=No
if combined_sql_q:
sql_prepend = b"SELECT * FROM ("
sql_append = b") ORDER BY CASE quality WHEN '{quality_unknown}' THEN -1 ELSE CAST(quality as DECIMAL) END DESC, " \
b" seeders DESC, isproper DESC".format(quality_unknown=Quality.UNKNOWN)
b" isproper DESC, seeders DESC".format(quality_unknown=Quality.UNKNOWN)

# Add all results
sql_total += main_db_con.select(b'{0} {1} {2}'.
Expand Down

0 comments on commit 394f6da

Please sign in to comment.