From eb39c8eba6a5c27ab56d9aea89e0d10729fb48ee Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 28 Mar 2023 20:46:13 +0100 Subject: [PATCH] Ensure QualityList returns resolutions in descending order --- devine/core/utils/click_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/utils/click_types.py b/devine/core/utils/click_types.py index fa607a3..e74b4bf 100644 --- a/devine/core/utils/click_types.py +++ b/devine/core/utils/click_types.py @@ -119,7 +119,7 @@ class QualityList(click.ParamType): ) except ValueError: self.fail(f"{resolution!r} is not a valid integer", param, ctx) - return resolutions + return sorted(resolutions, reverse=True) SEASON_RANGE = SeasonRange()