From: Deepanshu Karnwal Date: Mon, 19 Dec 2022 14:23:33 +0000 (+0530) Subject: [ISSUE-ID] : RICAPP-208 Degradation type entry is empty in anomaly message from AD... X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=5da0637daa11fc09c2980efad7f116ef2a537be8;p=ric-app%2Fad.git [ISSUE-ID] : RICAPP-208 Degradation type entry is empty in anomaly message from AD to TS Signed-off-by: Deepanshu Karnwal Change-Id: I34ef324b2f5deb68230d2654470d7136681d87dc --- diff --git a/src/ad_model.py b/src/ad_model.py index 617fc9f..6e14fa5 100644 --- a/src/ad_model.py +++ b/src/ad_model.py @@ -99,7 +99,7 @@ class CAUSE(object): sample.index = range(len(sample)) for i in range(len(sample)): if sample.iloc[i]['Anomaly'] == 1: - query = 'select * from {} where {} = \'{}\' and timenow()-20s'.format(db.meas, db.ue, sample.iloc[i][db.ue]) + query = """select * from "{}" where {} = \'{}\' and timenow()-20s""".format(db.meas, db.ue, sample.iloc[i][db.ue]) normal = db.query(query) if normal: normal = normal[db.meas][[db.thpt, db.rsrp, db.rsrq]]