diff --git a/app.py b/app.py index 0eb2dd98..7ceb780d 100644 --- a/app.py +++ b/app.py @@ -195,10 +195,13 @@ class TableView(BaseView): columns = [r[0] for r in rows.description] pks = pks_for_table(conn, table) rows = list(rows) + info = ensure_build_metadata() + total_rows = info[name]['tables'][table] return { 'database': name, 'table': table, 'rows': rows, + 'total_rows': total_rows, 'columns': columns, 'primary_keys': pks, }, lambda: { diff --git a/templates/table.html b/templates/table.html index fda692f7..8183f8af 100644 --- a/templates/table.html +++ b/templates/table.html @@ -5,7 +5,7 @@ {% block content %}