From f558b7c1998272810819415b0ca7cc990f7014c0 Mon Sep 17 00:00:00 2001 From: amir-zeldes Date: Thu, 8 Nov 2018 14:06:57 -0500 Subject: [PATCH] Remove decode utf8 bug on clone document * Metadata already utf8, caused crash on utf8 values --- editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.py b/editor.py index a283154..154f89b 100755 --- a/editor.py +++ b/editor.py @@ -197,7 +197,7 @@ def load_page(user,admin,theform): meta_to_write = [x for x in source_meta if x[2] not in existing_meta_keys] for meta in meta_to_write: m_key, m_val = meta[2], meta[3] - save_meta(int(doc_id), m_key.decode("utf8"), m_val.decode("utf8")) + save_meta(int(doc_id), m_key, m_val) if theform.getvalue('edit_docname'):