Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
hit_testing.py24 linesDownload Raw Back to datasets
1from flask_restful import Resource2 3from controllers.console import api4from controllers.console.datasets.hit_testing_base import DatasetsHitTestingBase5from controllers.console.wraps import account_initialization_required, setup_required6from libs.login import login_required7 8 9class HitTestingApi(Resource, DatasetsHitTestingBase):10    @setup_required11    @login_required12    @account_initialization_required13    def post(self, dataset_id):14        dataset_id_str = str(dataset_id)15 16        dataset = self.get_and_validate_dataset(dataset_id_str)17        args = self.parse_args()18        self.hit_testing_args_check(args)19 20        return self.perform_hit_testing(dataset, args)21 22 23api.add_resource(HitTestingApi, "/datasets/<uuid:dataset_id>/hit-testing")24