Commit 3a3202cc authored by Mathieu Courcelles's avatar Mathieu Courcelles

Removes debug statements

parent d2011255
......@@ -69,22 +69,16 @@ class FasterAdminPaginator(Paginator):
@cached_property
def count(self):
print('1')
try:
print('2')
if not self.object_list.query.where:
# estimates COUNT: https://djangosnippets.org/snippets/2593/
cursor = connection.cursor()
print('hey')
cursor.execute("SELECT TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = %s",
[self.object_list.query.model._meta.db_table])
ret = int(cursor.fetchone()[0])
print(ret)
return ret
except OperationalError:
print('error')
pass
try:
......@@ -819,10 +813,6 @@ class DatasetAdminMixin(object):
cache = caches['default']
queryset = cache.get(f'queryset_{random}')
for q in queryset:
print(type(q))
print(q)
return DatasetProcessing.run_Percolator(self, request, queryset, form)
# Send an intermediate page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment