From 39a4ab4d89c7c0349499160a1f8a1211535587c3 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Thu, 26 Dec 2024 21:20:08 +0100 Subject: [PATCH] Updated readme and changed page_size to 500 --- README.md | 9 +++++++++ app.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74cb2d1..38a502b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,15 @@ docker compose up -d - View complete parts inventory in the Parts page - View all minifigures in the Minifigures page +### Instructions + +Instructions can be added to the `static/instructions` folder. Instructions **must** be named: + +- SetNumber.pdf: `10312-1.pdf` or `7001-1.pdf`. Sets with multiple versions (eg. collectible minifigures) use `-1, -2 etc) like `71039-1.pdf` and `71039-2.pdf`. +- SetNumber-pdf_number.pdf: `10294-1-1.pdf`, `10294-1-2.pdf` and `10294-1-3.pdf` for all three PDFs of the `10294-1` set. + +Instructions are not automatically downloaded! + ## Docker Configuration The application uses two main configuration files: diff --git a/app.py b/app.py index b2d6ee8..7e50c8f 100644 --- a/app.py +++ b/app.py @@ -193,7 +193,7 @@ def new_set(set_num): # Get inventory and add to SQL # >>>>>>>> progress(count, total_parts,'Get set inventory') - response = json.loads(rebrick.lego.get_set_elements(set_num,page_size=20000).read()) + response = json.loads(rebrick.lego.get_set_elements(set_num,page_size=500).read()) count+=1 total_parts += len(response['results'])