diff --git a/posthog/session_recordings/session_recording_api.py b/posthog/session_recordings/session_recording_api.py index c15319b83dea8..87f4a12a2c5ed 100644 --- a/posthog/session_recordings/session_recording_api.py +++ b/posthog/session_recordings/session_recording_api.py @@ -8,7 +8,6 @@ import posthoganalytics import requests from django.contrib.auth.models import AnonymousUser -from django.db.models import Prefetch from django.http import JsonResponse, HttpResponse from drf_spectacular.utils import extend_schema from loginas.utils import is_impersonated_session diff --git a/posthog/session_recordings/test/test_session_recordings.py b/posthog/session_recordings/test/test_session_recordings.py index fe5385f1bfc38..331359b79118c 100644 --- a/posthog/session_recordings/test/test_session_recordings.py +++ b/posthog/session_recordings/test/test_session_recordings.py @@ -181,7 +181,7 @@ def test_get_session_recordings(self): 30, False, user.pk, - 10, # limited from 12 because we don't need that many + 1, # even though the user has many distinct ids we don't load them ), ]