chore: delete deprecated tables (#5833)
* migration: external source and id for issues * fix: cleaning up deprecated favorite tables * fix: removing deprecated models --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
6e63af7ca9
commit
cc613e57c9
9 changed files with 197 additions and 225 deletions
|
|
@ -150,7 +150,6 @@ class OffsetPaginator:
|
|||
raise BadPaginationError("Pagination offset cannot be negative")
|
||||
|
||||
results = queryset[offset:stop]
|
||||
print(limit, "limit")
|
||||
if cursor.value != limit:
|
||||
results = results[-(limit + 1) :]
|
||||
|
||||
|
|
@ -761,7 +760,6 @@ class BasePaginator:
|
|||
):
|
||||
"""Paginate the request"""
|
||||
per_page = self.get_per_page(request, default_per_page, max_per_page)
|
||||
print(per_page, "per_page")
|
||||
# Convert the cursor value to integer and float from string
|
||||
input_cursor = None
|
||||
try:
|
||||
|
|
@ -788,7 +786,6 @@ class BasePaginator:
|
|||
paginator = paginator_cls(**paginator_kwargs)
|
||||
|
||||
try:
|
||||
print(per_page, "per_page 2")
|
||||
cursor_result = paginator.get_result(
|
||||
limit=per_page, cursor=input_cursor
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue