Skip to content

Commit

Permalink
rename refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 18, 2024
1 parent 47b300e commit 7e4feae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/api/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def drop_events_over_quota(token: str, events: List[Any]) -> List[Any]:
return results


def lib_from_query_params(request) -> str:
def lib_version_from_query_params(request) -> str:
# url has a ver parameter from posthog-js
return request.GET.get("ver", "unknown")

Expand Down Expand Up @@ -480,7 +480,7 @@ def get_event(request):

try:
if replay_events:
lib_version = lib_from_query_params(request)
lib_version = lib_version_from_query_params(request)

alternative_replay_events = preprocess_replay_events_for_blob_ingestion(
replay_events, settings.SESSION_RECORDING_KAFKA_MAX_REQUEST_SIZE_BYTES
Expand Down

0 comments on commit 7e4feae

Please sign in to comment.