Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrSheldon committed May 27, 2024
2 parents e00777f + 7ba7c67 commit 67096c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/src/tira/endpoints/data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion application/src/tira/management/commands/git_runner_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions python-client/tira/rest_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}".')

Expand Down

0 comments on commit 67096c8

Please sign in to comment.