summaryrefslogtreecommitdiffstats
path: root/doc-publik
diff options
context:
space:
mode:
Diffstat (limited to 'doc-publik')
-rw-r--r--doc-publik/update-publik-doc-from-mallard.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc-publik/update-publik-doc-from-mallard.py b/doc-publik/update-publik-doc-from-mallard.py
index ee6e07c..8088f69 100644
--- a/doc-publik/update-publik-doc-from-mallard.py
+++ b/doc-publik/update-publik-doc-from-mallard.py
@@ -33,7 +33,9 @@ for cell in TextCell.objects.filter(slug__startswith='mallard-', page__snapshot_
for img in document.find_all('img'):
img.attrs['src'] = 'https://doc.entrouvert.org/%s/dev/%s' % (module, img.attrs['src'])
+ new_content = content.decode()
if more_info:
- new_content = content.decode().replace(more_info.decode(), '')
- cell.text = new_content
- cell.save()
+ new_content = new_content.replace(more_info.decode(), '')
+
+ cell.text = new_content
+ cell.save()