summaryrefslogtreecommitdiffstats
path: root/doc-publik/update-publik-doc-from-mallard.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc-publik/update-publik-doc-from-mallard.py')
-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()