We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c1d6e commit 494a6d4Copy full SHA for 494a6d4
1 file changed
wall_e/extensions/leveling.py
@@ -672,8 +672,11 @@ async def process_outdated_profile_pics(self):
672
if self.guild is None:
673
return
674
user_ids_to_update = await UserPoint.get_users_with_expired_images()
675
+ number_of_users_to_update = len(user_ids_to_update)
676
+ if number_of_users_to_update == 0:
677
+ return
678
self.logger.debug(
- f"[Leveling process_outdated_profile_pics()] {len(user_ids_to_update)} users with outdated CND links"
679
+ f"[Leveling process_outdated_profile_pics()] {number_of_users_to_update} users with outdated CND links"
680
f" to update"
681
)
682
await self._update_users(user_ids_to_update)
0 commit comments