Updated readme and changed page_size to 500

This commit is contained in:
FrederikBaerentsen 2024-12-26 21:20:08 +01:00
parent 56d5536c2d
commit 39a4ab4d89
2 changed files with 10 additions and 1 deletions

View File

@ -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:

2
app.py
View File

@ -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'])