Move swearwords in the function

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2020-09-19 11:39:14 +02:00
parent 07e54acc49
commit bd8dd1f03c

View File

@@ -28,9 +28,6 @@ from relational import parser
from relational.rtypes import is_valid_relation_name
SWEARWORDS = {'fuck', 'shit', 'suck', 'merda', 'mierda', 'merde'}
def send_survey(data) -> int:
'''Sends the survey. Data must be a dictionary.
returns the http response.
@@ -40,6 +37,8 @@ def send_survey(data) -> int:
import urllib.parse
from http.client import HTTPConnection
SWEARWORDS = {'fuck', 'shit', 'suck', 'merda', 'mierda', 'merde'}
post = ''
for i in data.keys():
post += '%s: %s\n' % (i, data[i].strip())