CSV/XML export #52
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I started working on the CSV export functionality from #25.
Rebrickable allows importing a CSV with just the fields
element_id,quantity
as a minimal example. This can be achieved with the following implementation (just showing the export file, not all the added html and routes):/views/admin/export.py
(New File)part_list.py
While the CSV export is useful, my initial goal was to export missing parts in Bricklink XML format. This would make it easier to import the data into a Bricklink wanted list and proceed with purchasing the parts.
part_list.py
Challenges:
One issue encountered during the Bricklink XML export is with parts like
3622pr0056
. While this is the part number on Rebrickable, the corresponding part number on Bricklink is3622pb122
. This discrepancy arises from differences in part numbering between the platforms (see Part Numbering). Rebrickable’s API does provide Bricklink part numbers via theexternal_ids
field:However, utilizing this data would require adding an extra field in the database to store Bricklink part numbers.
Next Steps: