Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions anms-core/anms/shared/manager_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,12 @@ def acknowledge(self, index):
curr_alert = None
with open(self.alert_file, 'r') as f:
alerts = json.load(f)
logger.info(alerts)
logger.info(index)
curr_alert = alerts.get(str(index))
logger.info(curr_alert)
if curr_alert:
logger.info(f"ACK {index}")
curr_alert["visible"]= False
alerts[str(index)] = curr_alert
with open(self.alert_file, 'w') as f:
logger.info(alerts)
json.dump(alerts, f)
except (FileNotFoundError, json.JSONDecodeError):
logger.error("ERROR reading alert.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
return {
ariKey: undefined,
ac: [],
result: { index: this.index, type: "AC", value: [] },
result: { index: this.index, type: this.type, value: [] },
keys: [],
currAc: [],
keysRealIndex: [],
Expand All @@ -65,14 +65,9 @@ export default {
this.addToList();
},
addToList: function () {
if(this.ac.length >= this.count){
this.ac.pop();
}
if (this.ariKey != null) {
this.ac.push(this.ariKey)
}
this.ariKey = null;
this.createAC();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,12 @@ export default {
testResult.push(JSON.stringify(head + value).replaceAll('"', ""));
break;
case "AC": //ac
let curr_str= ""
currValue = [];
let curr_str= ""
currValue = [];
value.forEach((ari) => {
currValue.push(ari);
});
if(currValue.length = 1 ){
testResult.push(currValue[0])
}else{
testResult.push("/AC/("+currValue.join(",")+")");
}
testResult.push("/AC/("+currValue.join(",")+")");
break;

case "EXPR": //ac
Expand All @@ -181,11 +177,20 @@ export default {

break;
default:
if (type.includes("TYPEDEF")){
testResult.push(value[0]);
}else{

testResult.push((value));}
if (type.includes("TYPEDEF")){
let curr_str= ""
currValue = [];
value.forEach((ari) => {
currValue.push(ari);
});
if(currValue.length == 1 ){
testResult.push(currValue[0])
}else{
testResult.push("/AC/("+currValue.join(",")+")");
}
}else{
testResult.push((value));
}

break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default {
index: index,
result: [],
name: name,
type: "TYPEDEF",
type: parm,
listComponents: aris,
count: 1,
},
Expand Down
2 changes: 1 addition & 1 deletion aricodec/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
]

dependencies = [
"dtnma-ace ~=2.0.0",
"dtnma-ace",
"paho-mqtt ~=1.6.1",
"sqlalchemy ~=1.4.42",
"psycopg2-binary ~=2.9.5",
Expand Down
2 changes: 1 addition & 1 deletion deps/dtnma-tools
Loading