if time() - self.lasttime > 5:
self.lasttime = time()
database.clear_cache()
- self.machines = dict((machine.name, machine) for machine in database.session.query(database.Machine).all())
+ self.machines = dict((machine.name, machine) for machine in database.Machine.query.all())
def getMachines(self, **kw):
self.recache()