From 4a3ca9f9335137694a65f9b88f6c28b2004d1276 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Fri, 26 Apr 2024 16:42:40 +0200 Subject: [PATCH] Added download of color csv --- database.py | 1 + lego.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/database.py b/database.py index 206c1ec..c6ae19e 100644 --- a/database.py +++ b/database.py @@ -76,6 +76,7 @@ cursor.execute('''CREATE TABLE IF NOT EXISTS missing ( set_num TEXT, id INTEGER, part_num INTEGER, + part_img_url_id TEXT, color_id INTEGER, quantity INTEGER, element_id INTEGER, diff --git a/lego.sh b/lego.sh index 3d40954..469ec0e 100644 --- a/lego.sh +++ b/lego.sh @@ -7,6 +7,8 @@ gzip -f -d themes.csv.gz wget https://cdn.rebrickable.com/media/downloads/sets.csv.gz gzip -f -d sets.csv.gz +wget https://cdn.rebrickable.com/media/downloads/colors.csv.gz +gzip -f -d colors.csv.gz cd static/ wget https://rebrickable.com/static/img/nil_mf.jpg