Remove owntracks from /latest

This commit is contained in:
Tanner Collin 2022-06-21 07:09:55 +00:00
parent 6a236b198a
commit 2b1be5344a

View File

@ -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)