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:
@@ -39,10 +39,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 (cs[0] if cs 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 curve_bucket(cmc):
|
||||
if cmc is None:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user