Skip to content
Snippets Groups Projects

Return the response payload in creation helpers

Merged Valentin Rigal requested to merge response-payload into master
3 files
+ 10
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -132,6 +132,8 @@ class ClassificationMixin(object):
self.report.add_classification(element.id, ml_class)
return created
def create_classifications(self, element, classifications):
"""
Create multiple classifications at once on the given element through the API
@@ -199,3 +201,5 @@ class ClassificationMixin(object):
logger.warning(
f"Couldn't save created classifications in local cache: {e}"
)
return created_cls
Loading