mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
More comments in TableView.data(), refs #1518
This commit is contained in:
parent
2c07327d23
commit
0663d5525c
1 changed files with 3 additions and 1 deletions
|
|
@ -437,6 +437,8 @@ class TableView(RowTableShared):
|
|||
|
||||
table_metadata = self.ds.table_metadata(database, table)
|
||||
units = table_metadata.get("units", {})
|
||||
|
||||
# Build where clauses from query string arguments
|
||||
filters = Filters(sorted(other_args), units, ureg)
|
||||
where_clauses, params = filters.build_where_clauses(table)
|
||||
|
||||
|
|
@ -584,7 +586,7 @@ class TableView(RowTableShared):
|
|||
|
||||
count_sql = f"select count(*) {from_sql}"
|
||||
|
||||
# Handl pagination driven by ?_next=
|
||||
# Handle pagination driven by ?_next=
|
||||
_next = _next or special_args.get("_next")
|
||||
offset = ""
|
||||
if _next:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue