Edit displaying rating and points rank for unlisted (#115)

* Edit displaying rating and points rank for unlisted

* Edit rating/points rank of unlisted users and cache get_rank functions
This commit is contained in:
Phuoc Anh Kha Le 2024-06-04 19:40:20 -05:00 committed by GitHub
parent 570c3071ee
commit 46c950dc37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 19 deletions

View file

@ -79,8 +79,10 @@ def cache_wrapper(prefix, timeout=None, expected_type=None):
return result
result = func(*args, **kwargs)
if result is None:
result = NONE_RESULT
_set(cache_key, result, timeout)
cache_result = NONE_RESULT
else:
cache_result = result
_set(cache_key, cache_result, timeout)
return result
def dirty(*args, **kwargs):