Skip to content

fix: import_zm_zones drops pattern and ignore_pattern #23

@pliablepixels

Description

@pliablepixels

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions