From bd8dd1f03ccb5a190222a06b0e2622f09348e3fd Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 19 Sep 2020 11:39:14 +0200 Subject: [PATCH] Move swearwords in the function --- relational/maintenance.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/relational/maintenance.py b/relational/maintenance.py index f8cfde9..d6837f3 100644 --- a/relational/maintenance.py +++ b/relational/maintenance.py @@ -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())