Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-sequential category ids #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AmanKishore
Copy link

Adding support for merging non-sequential category ids (not starting a 1).
For example merging the following categories will result in crate having the same id as pallet:
"categories": [ { "id": 3, "name": "small_load_carrier", "supercategory": "", "color": "#e8e047", "metadata": {} }, { "id": 5, "name": "forklift", "supercategory": "", "color": "#f8c718", "metadata": {} }, { "id": 7, "name": "pallet", "supercategory": "", "color": "#8dd708", "metadata": {} }, { "id": 10, "name": "stillage", "supercategory": "", "color": "#1640aa", "metadata": {} }, { "id": 11, "name": "pallet_truck", "supercategory": "", "color": "#6ba8dc", "metadata": {} } ],
and
"categories": [ { "supercategory": "pallet", "id": 1, "name": "pallet" }, { "supercategory": "load", "id": 2, "name": "load" }, { "supercategory": "box", "id": 3, "name": "box" }, { "supercategory": "crate", "id": 4, "name": "crate" } ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant