X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c07a8fb779699c186417d5435e5b935ef340a3a5..078017198692badda854eb70f7a5431112aed007:/src/social/api/views.py diff --git a/src/social/api/views.py b/src/social/api/views.py index ea8b1287e..cad07df05 100644 --- a/src/social/api/views.py +++ b/src/social/api/views.py @@ -464,8 +464,9 @@ class BookmarkSyncView(SyncView): sync_id_field = 'uuid' sync_id_serializer_field = 'uuid' - def get_queryset_for_ts(self, timestamp): - return self.model.objects.filter( - user=self.request.user, - created_at__gt=timestamp - ).order_by('created_at') + def get_instance(self, user, data): + ret = super().get_instance(user, data) + if ret is None: + if data.get('location'): + ret = self.model.get_by_location(user, data['location']) + return ret