Beispiel #1
0
 def post(self):
     self.response.headers.add_header('Access-Control-Allow-Origin', '*')
     self.response.headers['Content-Type'] = 'application/json'
     data = json.loads(self.request.body)
     id = data['urlkey']
     email = get_user_email()
     temp = models.decVote(id, email)
     result = {}
     result['decced'] = temp
     self.response.out.write(json.dumps(result))
Beispiel #2
0
 def post(self):
     self.response.headers.add_header('Access-Control-Allow-Origin', '*')
     self.response.headers['Content-Type'] = 'application/json'
     data = json.loads(self.request.body)
     id = data['urlkey']
     email = get_user_email()
     temp = models.decVote(id,email)
     result = {}
     result['decced'] = temp
     self.response.out.write(json.dumps(result))
Beispiel #3
0
 def post(self):
     id = self.request.get("id")
     email = get_user_email()
     models.decVote(id, email)
     self.redirect("/ReviewNewQuestions")
Beispiel #4
0
 def post(self):
     id = self.request.get("id")
     email = get_user_email()
     models.decVote(id,email)
     self.redirect("/ReviewNewQuestions")