def post(self): model = db_calls.add_temp(self.request) self.response.write({ "date": model.date, "temperature": model.temperature })
def add_temp(self, request): model = db_calls.add_temp(request) return presenter.copyTempPresenter(model)