mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed 500 error on homepage
This commit is contained in:
parent
ad789eaaea
commit
de005b9b7d
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ class IndexView(RenderMixin):
|
|||
"tables_count": len(tables),
|
||||
"tables_more": len(tables) > 5,
|
||||
"table_rows_sum": sum((t["count"] or 0) for t in tables.values()),
|
||||
"hidden_table_rows_sum": sum(t["count"] for t in hidden_tables),
|
||||
"hidden_table_rows_sum": sum(
|
||||
t["count"] for t in hidden_tables if t["count"] is not None
|
||||
),
|
||||
"hidden_tables_count": len(hidden_tables),
|
||||
"views_count": len(views),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue