feat: add issue_templates for creation of icons (#935)

Co-authored-by: Dashboard Icons Bot <homarr-labs@proton.me>
This commit is contained in:
Meier Lukas
2025-02-15 15:59:12 +01:00
committed by GitHub
parent 02aaf9bb7f
commit d1e008be5f
56 changed files with 18527 additions and 44 deletions

9
scripts/metadata.py Normal file
View 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")