UTF-8 decode participants list

master
Thomas Renger 4 years ago
parent 6666300c93
commit da35708096
  1. 2
      update-participants.py

@ -12,7 +12,7 @@ config=settings.load_settings()
x = xmlrpc.client.ServerProxy(config['xmlrpc_endpoint'])
page = x.wp.getPage(config['blog_id'], config['participants_page_id'], config['username'], config['password'])
text = render.render_template('templates/users.tmpl')
text = render.render_template('templates/users.tmpl').decode("utf-8")
page['description'] = text
x.wp.editPage(config['blog_id'], config['participants_page_id'], config['username'], config['password'],page,True)

Loading…
Cancel
Save