Skip to content

Commit

Permalink
mapcss: fix test code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jul 5, 2019
1 parent 400ae4e commit 16e95c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapcss/mapcss2osmose.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def segregate_selectors_type(rules):
out_rules[t].append(rule.copy())
out_rules[t][-1]['selectors'] = out_selector[t]
out_rules[t][-1]['declarations'] = list(filter(lambda d:
not d['property'] or not d['property'].startswith('assert') or not d['property'].startswith('-osmoseAssert') or
not d['property'] or not (d['property'].startswith('assert') or d['property'].startswith('-osmoseAssert')) or
(d['value']['type'] == 'single_value' and d['value']['value']['value'].startswith(t)) or
(d['value']['type'] == 'declaration_value_function' and d['value']['params'][0]['value']['value'].startswith(t)),
out_rules[t][-1]['declarations']))
Expand Down

0 comments on commit 16e95c9

Please sign in to comment.