mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
cleanup (#8619)
This commit is contained in:
parent
77c815be23
commit
b406b316ba
@ -177,10 +177,8 @@ class CohortViewSet(StructuredViewSetMixin, viewsets.ModelViewSet):
|
||||
_should_paginate = should_paginate(actors, filter.limit)
|
||||
next_url = format_query_params_absolute_url(request, filter.offset + filter.limit) if _should_paginate else None
|
||||
previous_url = (
|
||||
format_query_params_absolute_url(
|
||||
request, filter.offset - filter.limit if filter.offset - filter.limit > 0 else 0
|
||||
)
|
||||
if filter.offset - filter.limit > 0
|
||||
format_query_params_absolute_url(request, filter.offset - filter.limit)
|
||||
if filter.offset - filter.limit >= 0
|
||||
else None
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user