Skip to content

Commit cc084b9

Browse files
committed
dont replace spaces with _ in reason code, as findwhilewords will fail
1 parent d9d4227 commit cc084b9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mlapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def post(self):
142142
r = req.get('reason')
143143
if r and g.config['only_triggered_zm_zones'] == 'yes' and g.config['import_zm_zones'] == 'yes':
144144
g.logger.Debug(2, 'Only filtering polygon names that have {}'.format(r))
145-
r =r.replace(' ','_').lower()
146145
g.logger.Debug(2, 'Original polygons being used: {}'.format(g.polygons))
147146

148147
g.polygons[:] = [item for item in g.polygons if utils.findWholeWord(item['name'])(r)]

0 commit comments

Comments
 (0)