Remove owntracks from /latest
This commit is contained in:
parent
6a236b198a
commit
2b1be5344a
2
main.py
2
main.py
|
@ -393,7 +393,7 @@ async def latest(request):
|
||||||
result = dict()
|
result = dict()
|
||||||
|
|
||||||
for sensor in sensors:
|
for sensor in sensors:
|
||||||
if sensor.type_ == 'solar':
|
if sensor.type_ in ['solar', 'owntracks']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
q = 'select * from {} where "name" = \'{}\' order by desc limit 1'.format(sensor.type_, sensor.name)
|
q = 'select * from {} where "name" = \'{}\' order by desc limit 1'.format(sensor.type_, sensor.name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user