CSV/XML export #52
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Unraid
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FrederikBaerentsen/BrickTracker#52
Loading…
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: