示例#1
0
文件: main.py 项目: nikign/Git-Helper
 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()
示例#2
0
文件: main.py 项目: nikign/Git-Helper
 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()