This commit is contained in:
jxxghp
2023-08-12 21:19:53 +08:00
parent c969262d88
commit 789a4d9db6
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class TmdbCache(metaclass=Singleton):
new_meta_data.pop(k)
else:
count = 0
keys = random.sample(new_meta_data.keys(), 25)
keys = random.sample(sorted(new_meta_data.keys()), 25)
for k in keys:
info = new_meta_data.get(k)
expire = info.get(CACHE_EXPIRE_TIMESTAMP_STR)