mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-28 17:57:11 +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"]
|
||||
shape.emojis = [emojis] if isinstance(emojis, str) else emojis
|
||||
|
||||
if "is_part" in structure:
|
||||
shape.is_part = structure["is_part"]
|
||||
|
||||
if "group" in structure:
|
||||
shape.group = structure["group"]
|
||||
shape.is_part = structure.get("is_part", False)
|
||||
shape.group = structure.get("group", "")
|
||||
|
||||
if "categories" in structure:
|
||||
shape.categories = set(structure["categories"])
|
||||
|
|
Loading…
Add table
Reference in a new issue