mirror of https://github.com/DJ2LS/FreeDATA.git
codefactr fixes
parent
75c514f342
commit
dba907dabf
|
@ -836,7 +836,7 @@ update_chat = function(obj) {
|
|||
console.log(err);
|
||||
binaryString = blobUtil.arrayBufferToBinaryString(data);
|
||||
|
||||
}).then(function(data){
|
||||
}).then(function(){
|
||||
|
||||
console.log(binaryString)
|
||||
var data_with_attachment = doc.msg + split_char + filename + split_char + filetype + split_char + binaryString + split_char + doc.timestamp;
|
||||
|
|
|
@ -69,7 +69,7 @@ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
|
|||
log.info(f"{jsondata.get('mycallsign')} <<< {jsondata.get('dxcallsign')}", data=decoded_data[7])
|
||||
|
||||
try:
|
||||
filename = decoded_data[8].decode("utf-8") + "_" + decoded_data[5].decode("utf-8")
|
||||
filename = decoded_data[8].decode("utf-8") + "_" + decoded_data[5].decode("utf-8")
|
||||
|
||||
file = open(filename , "wb")
|
||||
file.write(decoded_data[7])
|
||||
|
|
Loading…
Reference in New Issue