def post(self):
     data = json.loads(self.request.body)
     value = data['value']
     key_id = data['key_id']
     feature_performance = FeaturePerformance.get_by_id(int(key_id))
     feature_performance.measured_date = datetime.datetime.now()
     feature_performance.value = float(value)
     feature_performance.put()
     return
 def post(self):
     data = json.loads(self.request.body)
     index = data['index']
     scheduled_update_date = data['scheduled_update_date']
     scheduled_update_date = datetime.datetime.strptime(scheduled_update_date, "%Y-%m-%d")
     key_id = data['key_id']
     feature_performance = FeaturePerformance.get_by_id(int(key_id))
     if index:
         feature_performance.index = index
     if scheduled_update_date:
         feature_performance.scheduled_update_date = scheduled_update_date
     feature_performance.put()
     return