Пример #1
0
    def post(self):
        model = db_calls.add_temp(self.request)

        self.response.write({
            "date": model.date,
            "temperature": model.temperature
        })
Пример #2
0
    def add_temp(self, request):
        model = db_calls.add_temp(request)

        return presenter.copyTempPresenter(model)