Add TRK set preview and refresh draft analysis

Track the TRK preview package and the newest value artifacts for FRA20261007, move the 17lands API notes under data, and ignore downloaded 17lands, card image and live directories.
This commit is contained in:
2026-11-15 11:37:16 +08:00
parent 4984b1f756
commit 58446ec562
1131 changed files with 1430660 additions and 189314 deletions
+11 -4
View File
@@ -29,10 +29,17 @@ def primary_pair(colors):
if not colors:
return None
order = "WUBRG"
cs = [c for c in order if c in colors.upper()]
return "".join(cs[:2]) if len(cs) >= 2 else None
up = [c for c in colors if c in order] # uppercase = main colors
low = [c for c in colors.upper() if c in order] # all colors
if len(up) >= 2:
pair = up[:2]
elif len(up) == 1:
pair = [up[0]] + [c for c in low if c != up[0]][:1]
else:
pair = low[:2]
if not pair:
return None
return "".join(sorted(pair, key=order.index))
def cmc_bucket(cmc):
if cmc is None:
return -1