-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2132 from doccano/enhancement/packages
[Enhancement] Update dependencies
- Loading branch information
Showing
6 changed files
with
166 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from model_mommy import mommy | ||
|
||
from projects.models import BOUNDING_BOX | ||
from projects.models import BOUNDING_BOX, SEGMENTATION | ||
|
||
|
||
def make_label(project, **kwargs): | ||
if project.project_type.endswith("Classification") or project.project_type == BOUNDING_BOX: | ||
if project.project_type.endswith("Classification") or project.project_type in {BOUNDING_BOX, SEGMENTATION}: | ||
return mommy.make("CategoryType", project=project, **kwargs) | ||
else: | ||
return mommy.make("SpanType", project=project, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.