Bug
In zmes_hook_helpers/utils.py, import_zm_zones() hardcodes pattern: None when appending imported ZM zones to g.polygons. This means any pattern filtering configured for ZM-imported zones is silently dropped.
Root Cause
Line 155-159 in utils.py:
g.polygons.append({
'name': name,
'value': z.points,
'pattern': None # always None
})
The Zone model in pyzm v2 supports pattern and ignore_pattern, but this code path never passes them through.
Fix
Pass through z.pattern and z.ignore_pattern from the Zone object instead of hardcoding None.
Bug
In
zmes_hook_helpers/utils.py,import_zm_zones()hardcodespattern: Nonewhen appending imported ZM zones tog.polygons. This means any pattern filtering configured for ZM-imported zones is silently dropped.Root Cause
Line 155-159 in
utils.py:The Zone model in pyzm v2 supports
patternandignore_pattern, but this code path never passes them through.Fix
Pass through
z.patternandz.ignore_patternfrom the Zone object instead of hardcodingNone.