Browse Source

Rename "General approach" to "General"

pull/1/head
rozetko 6 years ago
parent
commit
29d769df8e
  1. 2
      analytics/worker.py

2
analytics/worker.py

@ -100,7 +100,7 @@ class worker(object):
def get_model(self, anomaly_id, pattern): def get_model(self, anomaly_id, pattern):
if anomaly_id not in self.models_cache: if anomaly_id not in self.models_cache:
if pattern == "general approach": if pattern.find('general') != -1:
model = AnomalyModel(anomaly_id) model = AnomalyModel(anomaly_id)
else: else:
model = PatternDetectionModel(anomaly_id, pattern) model = PatternDetectionModel(anomaly_id, pattern)

Loading…
Cancel
Save