From 59faa47e61e520005f847ac2a1871c8e248488d8 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Wed, 29 May 2019 00:53:17 -0700 Subject: [PATCH] procat2/models: fix page count - add breaker pages --- procat2/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/procat2/models.py b/procat2/models.py index f3e5e03..7978350 100644 --- a/procat2/models.py +++ b/procat2/models.py @@ -151,6 +151,7 @@ class Catalog(models.Model): materials = 0 for section in data.get('sections', []): sections += 1 + pages += 1 # for breaker page for page in section.get('pages', []): pages += 1 for block in page: