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:
parent
570c3071ee
commit
46c950dc37
6 changed files with 25 additions and 19 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue