Skip to content

Commit

Permalink
fix(software): fix serialization by removing (color) control char…
Browse files Browse the repository at this point in the history
…acter
  • Loading branch information
ravenclaw900 committed Oct 11, 2021
1 parent 1dc1377 commit 14c30a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/backend/src/sockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,8 @@ async fn software_handler(
log::info!("{}ing software with ID(s) {:?}", data.cmd, data.args);
let out =
std::string::String::from_utf8(cmd.args(arg_list).output().unwrap().stdout)
.unwrap();
dbg!(SerJson::serialize_json(&types::DPSoftwareList {
software: systemdata::dpsoftware(),
response: out,
}));
.unwrap()
.replace("", "");
let _send = socket_send
.send(Message::text(SerJson::serialize_json(
&types::DPSoftwareList {
Expand Down

0 comments on commit 14c30a9

Please sign in to comment.