procat2/models: fix page count - add breaker pages

This commit is contained in:
Seth Ladygo
2019-05-29 00:53:17 -07:00
parent 66457d5487
commit 59faa47e61

View File

@ -151,6 +151,7 @@ class Catalog(models.Model):
materials = 0 materials = 0
for section in data.get('sections', []): for section in data.get('sections', []):
sections += 1 sections += 1
pages += 1 # for breaker page
for page in section.get('pages', []): for page in section.get('pages', []):
pages += 1 pages += 1
for block in page: for block in page: