Faceting no longer breaks pagination, fixes #282

This commit is contained in:
Simon Willison 2018-05-23 06:41:14 -07:00
commit 2bfd111d65
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
2 changed files with 8 additions and 3 deletions

View file

@ -556,7 +556,7 @@ class TableView(RowTableShared):
""".format(
col=escape_sqlite(column),
from_sql=from_sql,
and_or_where='and' if where_clause else 'where',
and_or_where='and' if from_sql_where_clauses else 'where',
limit=facet_size+1,
)
try: