Skip to content

Commit

Permalink
dont replace spaces with _ in reason code, as findwhilewords will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed May 28, 2021
1 parent d9d4227 commit cc084b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mlapi.py
Expand Up @@ -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)]
Expand Down

0 comments on commit cc084b9

Please sign in to comment.