Skip to content

Commit

Permalink
Fixed 500 error on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed May 10, 2019
1 parent ad789ea commit de005b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datasette/views/index.py
Expand Up @@ -57,7 +57,9 @@ async def get(self, request, as_format):
"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),
}
Expand Down

0 comments on commit de005b9

Please sign in to comment.