summaryrefslogtreecommitdiffstats
path: root/doc-publik
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-20 09:48:32 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-03-20 09:48:32 (GMT)
commitea13ac31d086284b62577db2401ffb77d19b9605 (patch)
tree905cf11167869a14982790fd3f9b947dd92255f3 /doc-publik
parent111c0cab6214cce4db231ceef98e50e7d2d6f694 (diff)
downloadmisc-fred-ea13ac31d086284b62577db2401ffb77d19b9605.zip
misc-fred-ea13ac31d086284b62577db2401ffb77d19b9605.tar.gz
misc-fred-ea13ac31d086284b62577db2401ffb77d19b9605.tar.bz2
doc: use orm filter to limit to interesting cells
Diffstat (limited to 'doc-publik')
-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 6a19c92..df01a55 100644
--- a/doc-publik/update-publik-doc-from-mallard.py
+++ b/doc-publik/update-publik-doc-from-mallard.py
@@ -4,7 +4,7 @@ import requests
from combo.data.models import TextCell
-for cell in TextCell.objects.all():
+for cell in TextCell.objects.filter(slug__startswith='mallard-'):
if not cell.slug.startswith('mallard-'):
continue
mallard_page = cell.slug.split('-', 1)[1]