Move swearwords in the function

master
Salvo 'LtWorf' Tomaselli 2020-09-19 11:39:14 +07:00
parent 07e54acc49
commit bd8dd1f03c
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 2 additions and 3 deletions

@ -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())