mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
typo
This commit is contained in:
parent
831da38946
commit
a15fa7b416
1 changed files with 2 additions and 2 deletions
|
@ -219,14 +219,14 @@ class CMDTCPRequestHandler(socketserver.BaseRequestHandler):
|
|||
if received_json["type"] == 'GET' and received_json["command"] == 'RX_BUFFER':
|
||||
output = {
|
||||
"COMMAND": "RX_BUFFER",
|
||||
"DATAARAY" : [],
|
||||
"DATA-ARRAY" : [],
|
||||
"EOF" : "EOF",
|
||||
}
|
||||
for i in range(0, len(static.RX_BUFFER)):
|
||||
|
||||
rawdata = json.loads(static.RX_BUFFER[i][3])
|
||||
|
||||
output["DATAARRAY"].append({"DXCALLSIGN": str(static.RX_BUFFER[i][0], 'utf-8'),"DXGRID": str(static.RX_BUFFER[i][1], 'utf-8'), "TIMESTAMP": static.RX_BUFFER[i][2], "RXDATA": [rawdata]})
|
||||
output["DATA-ARRAY"].append({"DXCALLSIGN": str(static.RX_BUFFER[i][0], 'utf-8'),"DXGRID": str(static.RX_BUFFER[i][1], 'utf-8'), "TIMESTAMP": static.RX_BUFFER[i][2], "RXDATA": [rawdata]})
|
||||
|
||||
jsondata = json.dumps(output)
|
||||
self.request.sendall(bytes(jsondata, encoding))
|
||||
|
|
Loading…
Reference in a new issue