Edit rating/points rank of unlisted users and cache get_rank functions
This commit is contained in:
parent
d9800a4759
commit
0803610811
6 changed files with 18 additions and 8 deletions
|
@ -72,6 +72,8 @@ def problem_update(sender, instance, **kwargs):
|
|||
|
||||
@receiver(post_save, sender=Profile)
|
||||
def profile_update(sender, instance, **kwargs):
|
||||
judge.utils.users.get_points_rank.dirty(instance.id)
|
||||
judge.utils.users.get_rating_rank.dirty(instance.id)
|
||||
if hasattr(instance, "_updating_stats_only"):
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue