Feature Update: Allow more than 100 rows in the zone list view. (#1491)

This commit is contained in:
Matt Scott 2023-04-11 18:57:51 -04:00 committed by GitHub
commit 71405549a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ def domains_custom(tab_id):
filtered_count = domains.count()
start = int(request.args.get("start", 0))
length = min(int(request.args.get("length", 0)), 100)
length = min(int(request.args.get("length", 0)), max(100, int(Setting().get('default_domain_table_size'))))
if length != -1:
domains = domains[start:start + length]