Exemple #1
0
 def post(self):
     errorMessage = self.request.get('errorMessage')
     link = self.request.get('link')
     userLog = InteractionLog(errorMessage = errorMessage)
     userLog.clickedLink = link
     userLog.clickTime = datetime.datetime.now()
     userLog.put()
Exemple #2
0
 def post(self):
     errorMessage = self.request.get('errorMessage')
     link = self.request.get('link')
     isHelpful = self.request.get('helpful')
     userLog = InteractionLog(errorMessage = errorMessage)
     userLog.clickedLink = link
     userLog.clickTime = datetime.datetime.now()
     if isHelpful == 'yes':
         userLog.isHelpful = True
     else:
         userLog.isHelpful = False
     userLog.put()