Module: check_mk
Branch: master
Commit: c548e8f19f06f3e226226391be8cb92226eafd20
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c548e8f19f06f3…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Thu Feb 9 13:29:46 2017 +0100
Fixed displayed number of tables if rowlimit is reached.
Change-Id: Ibc34b30cdad478b214bc519a56063e916e768de5
---
web/htdocs/table.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 175e311..e2851ba 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -179,6 +179,8 @@ def end():
if limit is not None:
# only use rows up to the limit plus the fixed rows
rows = [ rows[i] for i in range(num_rows_unlimited) if i < limit or
rows[i][3]]
+ # Display corrected number of rows
+ num_rows_unlimited -= len([row for row in rows if row[3]])
# Render header
_write_table(table, rows, actions_enabled, actions_visible, search_term)