Skip to content

Commit

Permalink
Remove decode utf8 bug on clone document
Browse files Browse the repository at this point in the history
  * Metadata already utf8, caused crash on utf8 values
  • Loading branch information
amir-zeldes committed Nov 8, 2018
1 parent 7a17834 commit f558b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit f558b7c

Please sign in to comment.