From 54271981858fae03079f155c7f26eae3a63c266b Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 25 Jul 2025 17:35:10 -0400 Subject: [PATCH] [profiles] Just black --- vrobbler/apps/profiles/models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vrobbler/apps/profiles/models.py b/vrobbler/apps/profiles/models.py index a4874fd..18fa5ab 100644 --- a/vrobbler/apps/profiles/models.py +++ b/vrobbler/apps/profiles/models.py @@ -16,6 +16,7 @@ BNULL = {"blank": True, "null": True} logger = logging.getLogger(__name__) + class UserProfile(TimeStampedModel): user = models.OneToOneField( User, on_delete=models.CASCADE, related_name="profile" @@ -72,7 +73,10 @@ class UserProfile(TimeStampedModel): old_instance = UserProfile.objects.get(pk=self.pk) is_timezone_change = self.timezone != old_instance.timezone if is_timezone_change: - logger.info("Updating timezone changelog for user", extra={"profile_id": self.id}) + logger.info( + "Updating timezone changelog for user", + extra={"profile_id": self.id}, + ) previous_changes = old_instance.timezone_change_log now = timezone.now().replace(microsecond=0) new_log = f"{self.timezone} - {now}" @@ -98,7 +102,7 @@ class UserProfile(TimeStampedModel): change_list = self.historic_timezone_changes for idx, start in enumerate(change_list): try: - end = change_list[idx+1] + end = change_list[idx + 1] except IndexError: end = None