From 49dd148f9f06cdab168374c7f1e4d5a3c4e52b7a Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 12 Mar 2024 23:15:48 -0400 Subject: [PATCH] [scrobbling] Fix missing location in create --- vrobbler/apps/scrobbles/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 38eee98..92c7760 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -890,6 +890,9 @@ class Scrobble(TimeStampedModel): that is far enough (and far enough over the last three past scrobbles) to have actually moved. """ + key = media_class_to_foreign_key(location.__class__.__name__) + scrobble_data[key + "_id"] = location.id + scrobble = ( cls.objects.filter( media_type=cls.MediaType.GEO_LOCATION,