From 5da0637daa11fc09c2980efad7f116ef2a537be8 Mon Sep 17 00:00:00 2001 From: Deepanshu Karnwal Date: Mon, 19 Dec 2022 19:53:33 +0530 Subject: [PATCH] [ISSUE-ID] : RICAPP-208 Degradation type entry is empty in anomaly message from AD to TS Signed-off-by: Deepanshu Karnwal Change-Id: I34ef324b2f5deb68230d2654470d7136681d87dc --- src/ad_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]] -- 2.16.6