summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-03-10 09:07:43 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-03-10 09:07:43 (GMT)
commit8023cf6b9c60eb633b0f91bcec51ddb35f3fd94d (patch)
treef3c42b353b5336bb07335fe49b4e3566c312b397
parent8b1e820ced51392c7d2ef51b762671db0595e799 (diff)
downloadmisc-fred-8023cf6b9c60eb633b0f91bcec51ddb35f3fd94d.zip
misc-fred-8023cf6b9c60eb633b0f91bcec51ddb35f3fd94d.tar.gz
misc-fred-8023cf6b9c60eb633b0f91bcec51ddb35f3fd94d.tar.bz2
doc-publik: ignore page snapshots
-rw-r--r--doc-publik/update-publik-doc-from-mallard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc-publik/update-publik-doc-from-mallard.py b/doc-publik/update-publik-doc-from-mallard.py
index 2d9eff4..41b760e 100644
--- a/doc-publik/update-publik-doc-from-mallard.py
+++ b/doc-publik/update-publik-doc-from-mallard.py
@@ -5,7 +5,7 @@ import requests
from combo.data.models import TextCell
-for cell in TextCell.objects.filter(slug__startswith='mallard-'):
+for cell in TextCell.objects.filter(slug__startswith='mallard-', page__snapshot__isnull=True):
if not cell.slug.startswith('mallard-'):
continue
mallard_page = cell.slug.split('-', 1)[1]