summaryrefslogtreecommitdiffstats
path: root/doc-publik/update-publik-doc-from-redmine.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc-publik/update-publik-doc-from-redmine.py')
-rw-r--r--doc-publik/update-publik-doc-from-redmine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc-publik/update-publik-doc-from-redmine.py b/doc-publik/update-publik-doc-from-redmine.py
index 453989e..53c68bb 100644
--- a/doc-publik/update-publik-doc-from-redmine.py
+++ b/doc-publik/update-publik-doc-from-redmine.py
@@ -20,12 +20,12 @@ for cell in TextCell.objects.filter(slug__in=DOCS.keys(), page__snapshot__isnull
continue
document = BeautifulSoup(resp.content, 'html5lib')
content = document.find('body')
- new_content = unicode(content).replace('<body>', '').replace('</body>', '')
+ new_content = content.decode().replace('<body>', '').replace('</body>', '')
cell.text = new_content
cell.order = 1
cell.save()
- url = DOCS[cell.slug].replace('.html', '').decode('utf-8')
+ url = DOCS[cell.slug].replace('.html', '')
cell, created = TextCell.objects.get_or_create(
page=cell.page,
slug='editor-warning', defaults={'order': 0})