Strip spaces from survey

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2017-05-10 21:53:51 +02:00
parent 6caf8bc741
commit 418dce95db

View File

@@ -35,7 +35,7 @@ def send_survey(data):
post = '' post = ''
for i in data.keys(): for i in data.keys():
post += '%s: %s\n' % (i, data[i]) post += '%s: %s\n' % (i, data[i].strip())
# sends the string # sends the string
params = urllib.parse.urlencode({'survey': post}) params = urllib.parse.urlencode({'survey': post})