summaryrefslogtreecommitdiffstats
path: root/doc-publik
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-01-07 14:28:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-01-07 14:28:02 (GMT)
commit5916e4a9862ac53947dc8412e2301a89ca9b6d05 (patch)
treecd1e8af470b0edb9869a8c170fa4e3b8516b763e /doc-publik
parent2c7c3b798a9063aff194047edad58d4c3f3f56ad (diff)
downloadmisc-fred-5916e4a9862ac53947dc8412e2301a89ca9b6d05.zip
misc-fred-5916e4a9862ac53947dc8412e2301a89ca9b6d05.tar.gz
misc-fred-5916e4a9862ac53947dc8412e2301a89ca9b6d05.tar.bz2
doc: ignore page snapshots when looking for textcell
Diffstat (limited to 'doc-publik')
-rw-r--r--doc-publik/update-publik-doc-from-mallard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc-publik/update-publik-doc-from-mallard.py b/doc-publik/update-publik-doc-from-mallard.py
index 2bfc08e..e0990cc 100644
--- a/doc-publik/update-publik-doc-from-mallard.py
+++ b/doc-publik/update-publik-doc-from-mallard.py
@@ -24,7 +24,8 @@ for cell in TextCell.objects.filter(slug__startswith='mallard-'):
if '/' in parsed.path:
continue
try:
- target_cell = TextCell.objects.get(slug='mallard-%s' % parsed.path.replace('.html', ''))
+ target_cell = TextCell.objects.get(slug='mallard-%s' % parsed.path.replace('.html', ''),
+ page__snapshot__isnull=True)
except TextCell.DoesNotExist:
continue
a.attrs['href'] = target_cell.page.get_online_url()