Skip to content

Commit

Permalink
Temp fix for cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed Jul 9, 2024
1 parent 08ede3f commit c00db58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion judge/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ def organization(self):

@cached_property
def username(self):
return self._cached_info["username"]
try:
return self._cached_info["username"]
except KeyError:
_get_basic_info.dirty(self.id)

@cached_property
def first_name(self):
Expand Down

0 comments on commit c00db58

Please sign in to comment.