Skip to content

Commit 4a55c54

Browse files
committed
fixing issue where bucket_update_in_progress is prematurely set to true
1 parent 494a6d4 commit 4a55c54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wall_e/extensions/leveling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,13 @@ async def _set_bucket_numbers(self):
517517
by get_updated_user_logs
518518
:return:
519519
"""
520-
if self.bucket_update_in_progress:
521-
return
522-
self.bucket_update_in_progress = True
523520
user_points = [user_point for user_point in self.user_points.values() if user_point.bucket_number is None]
524521
if len(user_points) == 0:
525522
return
526523

524+
if self.bucket_update_in_progress:
525+
return
526+
self.bucket_update_in_progress = True
527527
users_to_update = self._setup_bucket_number_for_new_users()
528528

529529
self.logger.debug(

0 commit comments

Comments
 (0)