[Feature] CSV/XML export #52
Reference in New Issue
Block a user
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,quantityas 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.pyWhile 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.pyChallenges:
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_idsfield:However, utilizing this data would require adding an extra field in the database to store Bricklink part numbers.
Next Steps:
CSV/XML exportto [Feature] CSV/XML exportWorking on
with
136f7d03f5Implemented in
pre-1.4for testing. Will be released with 1.4