decoded sender to concat in string

This commit is contained in:
Hannes Klinckaert 2019-09-03 00:27:49 +02:00
parent 62c2deb0db
commit b6a9975f61

View file

@ -90,7 +90,7 @@ def messages_post():
return "OK" return "OK"
if sender != "somebody": if sender != "somebody":
message = "<" + sender + "> " + message message = "<" + sender.decode() + "> " + message
messages.append(Message(time, sender, sendertype, str(message, "UTF-8"))) messages.append(Message(time, sender, sendertype, str(message, "UTF-8")))
url = 'http://10.0.5.42:8000/' # Set destination URL here url = 'http://10.0.5.42:8000/' # Set destination URL here