Commit 30ee034e authored by Maksymilian Chodacki's avatar Maksymilian Chodacki

measurements update

parent 2179b118
......@@ -12,9 +12,17 @@ class MainHandler(tornado.web.RequestHandler):
def get(self):
#stations = self.get_stations()
#stations = models.Station.get_all()
stations = models.Station.get(1)
#stations = models.Station.getall()
stations = models.Station.get("b1d12bb6-a3b7-43b8-b6ab-6d6e62cb794e", tornado.ioloop.IOLoop.current())
for s in stations:
self.write("{0} {1} {2} {3} {4}<br />".format(s['station_id'], s['city'], s['longitude'], s['latitude'], s['name']))
for s in stations:
measurement = models.Measurement.getlast(station=s.id)
self.write("".format())
#measurements = self.get_measurements()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment