Mercurial > personal > weather-server
diff weather_server/server.py @ 16:9a609bcf0809
Port main script to TypeScript and prepare for serving it.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 12 Oct 2019 14:03:52 -0400 |
parents | 52ef21607b31 |
children | beb42c835c52 |
line wrap: on
line diff
--- a/weather_server/server.py Fri Oct 11 20:50:50 2019 -0400 +++ b/weather_server/server.py Sat Oct 12 14:03:52 2019 -0400 @@ -89,7 +89,10 @@ ] resp = flask.Response() resp.content_type = 'application/json' - resp.data = common.json_dumps(readings) + resp.data = common.json_dumps({ + 'timezone': loc.tz_name, + 'readings': readings, + }) return resp return app