From cc084b9445d72f08b8522c9cfb5e5267f063541b Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 28 May 2021 05:29:38 -0400 Subject: [PATCH] dont replace spaces with _ in reason code, as findwhilewords will fail --- mlapi.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mlapi.py b/mlapi.py index ddc0140..644b730 100755 --- a/mlapi.py +++ b/mlapi.py @@ -142,7 +142,6 @@ def post(self): r = req.get('reason') if r and g.config['only_triggered_zm_zones'] == 'yes' and g.config['import_zm_zones'] == 'yes': g.logger.Debug(2, 'Only filtering polygon names that have {}'.format(r)) - r =r.replace(' ','_').lower() g.logger.Debug(2, 'Original polygons being used: {}'.format(g.polygons)) g.polygons[:] = [item for item in g.polygons if utils.findWholeWord(item['name'])(r)]