Call-for-Code-for-Racial-Justice / Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI

unset categories can't be returned by analyse

オープン
#1 コメント 4 件 リアクション 0 件 担当者 1 名 @nitekon1 に割り当て済み GitHub で見る
bug good first issue keep-open stale
主要言語
Python
スター
8
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
When there is already a category 'unset' string that is the same or contains any character within another string, the analyse endpoint will not color by category.

**To Reproduce**
Steps to reproduce the behavior:
1. In the highlighter, select just the letter "p" and leave it **uncategorised**.
2. Highlight another word that has "p" within it (e.g "leap") and **categorize** it.
3. Go to 'TakeTwo web api' text creator page and type in the second word you highlighted ("leap").
4. See that the category color does not show.

**Expected behavior**
Should highlight all matches, for example both "p" and "pappa".

**Additional context**
We can fix this by filtering out the "unset" categories when using the analyse endpoint. TO DO.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。