diff --git a/application/src/tira/endpoints/data_api.py b/application/src/tira/endpoints/data_api.py index f6bea958..3f69a34a 100644 --- a/application/src/tira/endpoints/data_api.py +++ b/application/src/tira/endpoints/data_api.py @@ -396,7 +396,7 @@ def public_submission(request, context, task_id, user_id, display_name): context['submission'] = ret return JsonResponse({'status': 0, "context": context}) - return JsonResponse({'status': 1, "messge": "Software '{task_id}/{user_id}/{display_name}' does not exist."}) + return JsonResponse({'status': 1, "messge": f"Software '{task_id}/{user_id}/{display_name}' does not exist."}) @check_permissions diff --git a/application/src/tira/management/commands/git_runner_cli.py b/application/src/tira/management/commands/git_runner_cli.py index f50d52fc..060bc1d5 100644 --- a/application/src/tira/management/commands/git_runner_cli.py +++ b/application/src/tira/management/commands/git_runner_cli.py @@ -179,7 +179,7 @@ def handle(self, *args, **options): 'longeval-long-september-20230513-training', 'longeval-short-july-20230513-training', 'longeval-train-20230513-training', 'trec-tip-of-the-tongue-dev-20230607-training', 'longeval-2023-06-20240418-training', 'longeval-2023-08-20240418-training', - 'ir-acl-anthology-topics-leipzig-20240423-test', 'ir-acl-anthology-topics-leipzig-20240423-test' + 'ir-acl-anthology-topics-leipzig-20240423-test', 'ir-acl-anthology-topics-leipzig-20240423-test', 'ir-acl-anthology-topics-augsburg-20240525_0-test' ] for dataset in datasets: print(dataset) diff --git a/python-client/tira/rest_api_client.py b/python-client/tira/rest_api_client.py index 06fd77d6..918ae096 100644 --- a/python-client/tira/rest_api_client.py +++ b/python-client/tira/rest_api_client.py @@ -509,11 +509,12 @@ def get_authentication_cookie(self, user, password): return f'_t={resp.cookies["_t"]}; _forum_session={resp.cookies["_forum_session"]}' - def run_software(self, approach, dataset, resources, rerank_dataset='none'): + def run_software(self, approach, dataset, resources, rerank_dataset='none', software_id=None): task, team, software = approach.split('/') authentication_cookie = self.get_authentication_cookie(self.load_settings()['user'], self.load_settings()['password']) - software_id = self.docker_software_id(approach) + if not software_id: + software_id = self.docker_software_id(approach) if not software_id: raise ValueError(f'Could not find software id for "{approach}". Got: "{software_id}".')