Skip to content

Commit

Permalink
pdf_max_rows should be default
Browse files Browse the repository at this point in the history
  • Loading branch information
nursix committed May 20, 2019
1 parent 2186bf0 commit 44fc7af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
nursix-dev-2867-gddde9cb (2019-05-19 17:14:43)
nursix-dev-2868-g2186bf0 (2019-05-20 10:00:55)
3 changes: 2 additions & 1 deletion modules/s3cfg.py
Expand Up @@ -1919,8 +1919,9 @@ def get_pdf_excluded_fields(self, resourcename):
def get_pdf_max_rows(self):
"""
Maximum number of records in a single PDF table/list export
- None for unlimited
"""
return self.base.get("pdf_max_rows")
return self.base.get("pdf_max_rows", 1000)

# -------------------------------------------------------------------------
# XLS Export Settings
Expand Down
3 changes: 0 additions & 3 deletions modules/templates/DRKCM/config.py
Expand Up @@ -248,9 +248,6 @@ def config(settings):
"BAMF-Az": "bamf.value",
}

# Limit the number of records in PDF exports
settings.base.pdf_max_rows = 1000

# -------------------------------------------------------------------------
# Realm Rules
#
Expand Down
2 changes: 1 addition & 1 deletion modules/templates/default/config.py
Expand Up @@ -232,7 +232,7 @@ def config(settings):
#settings.base.pdf_orientation = "Landscape"
# Location of Logo used in pdfs headers
#settings.ui.pdf_logo = "static/img/mylogo.png"
# Limit the number of records in PDF exports
# Maximum number of records in PDF exports (None for unlimited)
#settings.base.pdf_max_rows = 1000

#Uncomment to add a title row to XLS exports
Expand Down

0 comments on commit 44fc7af

Please sign in to comment.