Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Update readme generator to handle null version
This commit is contained in:
1 parent
27671a31d1
commit
5617e22f05
1 file changed
+5
@@ -105,9 +105,14 @@ def versions_table(targets):
|
||||
cells = []
|
||||
for t in targets:
|
||||
ver = t["version"]
|
||||
if ver is None:
|
||||
continue
|
||||
label = f"🧪 {ver}" if t.get("isExperimental") else ver
|
||||
cells.append(label)
|
||||
|
||||
if not cells:
|
||||
return ""
|
||||
|
||||
header = "| " + " | ".join(cells) + " |"
|
||||
sep = "| " + " | ".join(":---:" for _ in cells) + " |"
|
||||
rows = [header, sep]
|
||||
|
||||
Reference in new issue
Block a user