mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 10:21:54 +02:00
Clean up icon configuration parsing.
This commit is contained in:
parent
846d935bbe
commit
2383d28362
1 changed files with 2 additions and 5 deletions
|
@ -108,11 +108,8 @@ class Shape:
|
||||||
emojis = structure["emoji"]
|
emojis = structure["emoji"]
|
||||||
shape.emojis = [emojis] if isinstance(emojis, str) else emojis
|
shape.emojis = [emojis] if isinstance(emojis, str) else emojis
|
||||||
|
|
||||||
if "is_part" in structure:
|
shape.is_part = structure.get("is_part", False)
|
||||||
shape.is_part = structure["is_part"]
|
shape.group = structure.get("group", "")
|
||||||
|
|
||||||
if "group" in structure:
|
|
||||||
shape.group = structure["group"]
|
|
||||||
|
|
||||||
if "categories" in structure:
|
if "categories" in structure:
|
||||||
shape.categories = set(structure["categories"])
|
shape.categories = set(structure["categories"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue