BlueWizard

Missing sets in inventory_parts.csv

Recommended Posts

Seems like the inventory_parts.csv file from https://rebrickable.com/downloads/ is incomplete. For example, there is nothing with inventory_id 23385:

 

23369,973pr3935c01,15,1,f
23369,98139,297,1,f
23388,25111,179,1,f
23388,25375,297,1,f
 

while in inventory_sets.csv, there is:

23385,10706-1,1
23385,10707-1,1
23385,10708-1,1
23385,10709-1,1
 

However, the information is present in the database as shown by:

curl -X GET --header 'Accept: application/json' --header 'Authorization: key XXXXXXXX' 'https://rebrickable.com/api/v3/lego/sets/10706-1/parts/'
 

Share this post


Link to post
Share on other sites
On 5/12/2018 at 2:43 PM, BlueWizard said:

Seems like the inventory_parts.csv file from https://rebrickable.com/downloads/ is incomplete. For example, there is nothing with inventory_id 23385:

 

23369,973pr3935c01,15,1,f
23369,98139,297,1,f
23388,25111,179,1,f
23388,25375,297,1,f
 

while in inventory_sets.csv, there is:

23385,10706-1,1
23385,10707-1,1
23385,10708-1,1
23385,10709-1,1
 

However, the information is present in the database as shown by:

curl -X GET --header 'Accept: application/json' --header 'Authorization: key XXXXXXXX' 'https://rebrickable.com/api/v3/lego/sets/10706-1/parts/'
 

You are misinterpreting the inventory_sets.csv file. An inventory can contain parts and/or sets. In this case, inventory id 23385 (for set 66557) contains sets but no parts.

Share this post


Link to post
Share on other sites