fix unicode encoding

This commit is contained in:
Yax 2021-07-31 14:22:24 +02:00
parent 5cc8765c49
commit 9fad002faf

2
run.py
View file

@ -92,7 +92,7 @@ def stacosys_server(config_pathname):
app.logger.addHandler(mail_handler)
# configure scheduler
conf.set(ConfigParameter.SITE_TOKEN, hashlib.sha1(conf.get(ConfigParameter.SITE_NAME)).hexdigest())
conf.put(ConfigParameter.SITE_TOKEN, hashlib.sha1(conf.get(ConfigParameter.SITE_NAME).encode('utf-8')).hexdigest())
scheduler.configure(
conf.get_int(ConfigParameter.IMAP_POLLING),
conf.get_int(ConfigParameter.COMMENT_POLLING),