diff --git a/analytics/worker.py b/analytics/worker.py index 2b1fd1d..852e801 100644 --- a/analytics/worker.py +++ b/analytics/worker.py @@ -100,7 +100,7 @@ class worker(object): def get_model(self, anomaly_id, pattern): if anomaly_id not in self.models_cache: - if pattern == "general approach": + if pattern.find('general') != -1: model = AnomalyModel(anomaly_id) else: model = PatternDetectionModel(anomaly_id, pattern)