Display drules with automatic priorities #18
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/kothic#18
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "pastk-display-auto-priorities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -280,29 +274,30 @@ def load_priorities(prio_range, path, classif, compress = False):
prio_ranges[prio_range]['priorities'][prio_id] = int(step * (base_idx + idx))
How it can be not a string?
@ -341,37 +336,65 @@ def dump_priorities(prio_range, path, maxzoom):
with open(get_priorities_filename(prio_range, path), 'w') as outfile:
How it should be interpreted?
A and (B or C) and D
(A and B) or (C and D)
?
Please, put braces here and split this gigantic if on smaller conditions with intermediate vars.
Should be "is not None" ?
@ -280,29 +274,30 @@ def load_priorities(prio_range, path, classif, compress = False):
prio_ranges[prio_range]['priorities'][prio_id] = int(step * (base_idx + idx))
it can be a tuple for cases when auto_comment is passed along
@ -280,29 +274,30 @@ def load_priorities(prio_range, path, classif, compress = False):
prio_ranges[prio_range]['priorities'][prio_id] = int(step * (base_idx + idx))
I've changed the func's signature to make it more explicit.
fixed
@ -341,37 +336,65 @@ def dump_priorities(prio_range, path, maxzoom):
with open(get_priorities_filename(prio_range, path), 'w') as outfile:
fixed
Again, (X or Y and Z) is undefined for me ..
Put braces here.
BTW, how python interpret this?
In all programming languages that I know
and
has a precedence overor
.