From 7605c672f6362a77dc16942aaefd8aa910696324 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 16 Jan 2023 23:54:19 -0500 Subject: [PATCH] Fix str rep for scrobbles --- vrobbler/apps/scrobbles/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 265340d..9a6963c 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/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(