Kaynağa Gözat

Fix str rep for scrobbles

Colin Powell 2 yıl önce
ebeveyn
işleme
7605c672f6
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      vrobbler/apps/scrobbles/models.py

+ 2 - 1
vrobbler/apps/scrobbles/models.py

@@ -70,7 +70,8 @@ class Scrobble(TimeStampedModel):
         return media_obj
 
     def __str__(self):
-        return f"Scrobble of {self.media_obj} {self.timestamp.year}-{self.timestamp.month}"
+        timestamp = self.timestamp.strftime('%Y-%m-%d')
+        return f"Scrobble of {self.media_obj} ({timestamp})"
 
     @classmethod
     def create_or_update_for_video(