mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-27 05:29:03 +08:00
feat: add issue_templates for creation of icons (#935)
Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
This commit is contained in:
9
scripts/metadata.py
Normal file
9
scripts/metadata.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
|
||||
|
||||
def load_metadata(icon_name: str) -> dict:
|
||||
try:
|
||||
with open(f"meta/{icon_name}.json", "r") as f:
|
||||
return json.load(f)
|
||||
except FileNotFoundError:
|
||||
raise ValueError(f"Icon '{icon_name}' does not exist")
|
||||
Reference in New Issue
Block a user