fix status page

This commit is contained in:
Jakob Ketterl
2021-03-06 23:34:27 +01:00
parent 3d20e3ed80
commit e0985c3802
2 changed files with 32 additions and 2 deletions

View File

@ -2,6 +2,7 @@ from .receiverid import ReceiverIdController
from owrx.version import openwebrx_version
from owrx.sdr import SdrService
from owrx.config import Config
from owrx.jsons import Encoder
import json
import logging
@ -40,4 +41,4 @@ class StatusController(ReceiverIdController):
"version": openwebrx_version,
"sdrs": [self.getReceiverStats(r) for r in SdrService.getSources().values()],
}
self.send_response(json.dumps(status), content_type="application/json")
self.send_response(json.dumps(status, cls=Encoder), content_type="application/json")