Move swearwords in the function
This commit is contained in:
parent
07e54acc49
commit
bd8dd1f03c
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user