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:
guru_sainath 2024-10-16 00:33:57 +05:30 committed by GitHub
parent 6e63af7ca9
commit cc613e57c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 197 additions and 225 deletions

View file

@ -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
)