From c63789079538faeb86ce94da527f288212656c3e Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Thu, 26 Dec 2013 23:51:00 +0100 Subject: [PATCH] Make the survey point to the new location on appspot --- feedback-ltworf/app.yaml | 2 +- relational/maintenance.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/feedback-ltworf/app.yaml b/feedback-ltworf/app.yaml index a89a1bf..7730430 100644 --- a/feedback-ltworf/app.yaml +++ b/feedback-ltworf/app.yaml @@ -1,5 +1,5 @@ application: feedback-ltworf -version: 1 +version: 2 runtime: python27 api_version: 1 threadsafe: true diff --git a/relational/maintenance.py b/relational/maintenance.py index 877c0fc..00fba92 100644 --- a/relational/maintenance.py +++ b/relational/maintenance.py @@ -34,8 +34,13 @@ def send_survey(data): #sends the string params = urllib.urlencode({'survey':post}) headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"} - connection = httplib.HTTPConnection('galileo.dmi.unict.it') - connection.request("POST","/~ltworf/survey.php",params,headers) + #connection = httplib.HTTPConnection('galileo.dmi.unict.it') + #connection.request("POST","/~ltworf/survey.php",params,headers) + + connection = httplib.HTTPConnection('feedback-ltworf.appspot.com') + connection.request("POST","/feedback/relational",params,headers) + + return connection.getresponse()