Skip to content

Commit

Permalink
Revert "Add pagination"
Browse files Browse the repository at this point in the history
This reverts commit 72e3af4.
  • Loading branch information
Charl1996 committed Jul 2, 2024
1 parent 0c75e90 commit 7860d98
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions corehq/apps/hqadmin/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,6 @@ def rows(self):

return rows

@property
def total_records(self):
return len(self.ucr_domains)

@property
def ucr_domains(self):
return USER_CONFIGURABLE_REPORTS.get_enabled_domains()
Expand Down Expand Up @@ -482,7 +478,6 @@ class UCRDataLoadReport(AdminReport):
emailable = False
exportable = False
default_rows = 10
ajax_pagination = True

def __init__(self, request, *args, **kwargs):
self.table_data = UCRRebuildRestrictionTable(
Expand All @@ -496,16 +491,4 @@ def headers(self):

@property
def rows(self):
start = self.pagination.start
end = self.pagination.start + self.pagination.count
return self.table_data.rows[start:end]

@property
def total_records(self):
return self.table_data.total_records

@property
def shared_pagination_GET_params(self):
return [
{'name': 'ucr_rebuild_restriction', 'value': self.request.GET.get('ucr_rebuild_restriction')}
]
return self.table_data.rows

0 comments on commit 7860d98

Please sign in to comment.