From 70b935183ef534eab5afe512c0925e5367df34c2 Mon Sep 17 00:00:00 2001 From: Yunlin Mao Date: Mon, 3 Nov 2025 10:54:09 +0800 Subject: [PATCH] Update modelscope/hub/constants.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- modelscope/hub/constants.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modelscope/hub/constants.py b/modelscope/hub/constants.py index a2a11a7b..4cec4282 100644 --- a/modelscope/hub/constants.py +++ b/modelscope/hub/constants.py @@ -125,9 +125,9 @@ class SortKey(object): LAST_MODIFIED = 'last_modified' -SortKeyMap = { - SortKey.DEFAULT: SortKey.DEFAULT, - SortKey.DOWNLOADS: SortKey.DOWNLOADS, - SortKey.LIKES: SortKey.LIKES, - SortKey.LAST_MODIFIED: SortKey.LAST_MODIFIED +VALID_SORT_KEYS = { + SortKey.DEFAULT, + SortKey.DOWNLOADS, + SortKey.LIKES, + SortKey.LAST_MODIFIED, }