You've already forked etude_lego_jurassic_world
Filtre les couleurs ignorées et aligne les palettes
This commit is contained in:
@@ -5,6 +5,7 @@ from pathlib import Path
|
||||
from typing import Dict, Iterable, List, Set, Tuple
|
||||
|
||||
from lib.rebrickable.colors_by_set import build_colors_lookup
|
||||
from lib.rebrickable.color_ignores import is_ignored_color_rgb
|
||||
from lib.rebrickable.stats import read_rows
|
||||
|
||||
|
||||
@@ -39,6 +40,8 @@ def aggregate_head_colors_by_set(
|
||||
continue
|
||||
if row["is_spare"] == "true":
|
||||
continue
|
||||
if is_ignored_color_rgb(row["color_rgb"]):
|
||||
continue
|
||||
key = (row["set_num"], row["set_id"], row["year"], row["color_rgb"])
|
||||
existing = aggregates.get(key)
|
||||
if existing is None:
|
||||
|
||||
Reference in New Issue
Block a user