Fix probe filter for tempmon readings grid

This commit is contained in:
Lance Edgar 2017-02-02 14:29:36 -06:00
parent ff7b167d7e
commit 9ebce976c1

View file

@ -62,7 +62,8 @@ class TempmonReadingView(MasterView):
g.sorters['client_host'] = g.make_sorter(tempmon.Client.hostname)
g.filters['client_host'] = g.make_filter('client_host', tempmon.Client.hostname)
g.joiners['probe'] = lambda q: q.join(tempmon.Probe)
g.joiners['probe'] = lambda q: q.join(tempmon.Probe,
tempmon.Probe.uuid == tempmon.Reading.probe_uuid)
g.sorters['probe'] = g.make_sorter(tempmon.Probe.description)
g.filters['probe'] = g.make_filter('probe', tempmon.Probe.description)