Commit 1fb48312 authored by Dominik Rosiek's avatar Dominik Rosiek

soft cache ftw

parent f5b90da8
......@@ -142,9 +142,9 @@ class Measurement(DDBobject):
for measurement in data:
get = yield cls.get(measurement['measurement_id'])
return_value.append(get)
cls.last_measurements = return_value
# cls.last_measurements = return_value
return cls.last_measurements
return return_value
def __str__(self):
return "{0} {1} {2} {3} {4}".format(self.id, self.station.id, self.type.id, self.value, self.time)
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