Skip to content

Fix for when prediction breakdown does not contain main label#182

Open
Cyborger1 wants to merge 4 commits intoBot-detector:masterfrom
Cyborger1:correct-fallback-on-missing-prediction
Open

Fix for when prediction breakdown does not contain main label#182
Cyborger1 wants to merge 4 commits intoBot-detector:masterfrom
Cyborger1:correct-fallback-on-missing-prediction

Conversation

@Cyborger1
Copy link
Collaborator

If the API returns a breakdown with at least one element and that breakdown does not contain the primary label, it is added before being sent over to the plugin. Ideally this should not happen, this is more of a fallback measure.

Also some random changes to using isEmpty() in there, I'm not sure why I didn't use those before.

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