Skip to content

Commit

Permalink
always save annotator selection to status.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoad committed Dec 2, 2024

Verified

This commit was signed with the committer’s verified signature.
farfromrefug farfromrefuge
1 parent cd91edc commit 945441b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cravat/websubmit/websubmit.py
Original file line number Diff line number Diff line change
@@ -290,6 +290,7 @@ async def resubmit (request):
input_fpaths = status_json['orig_input_path']
note = status_json['note']
annotators = status_json['annotators']
annotators = status_json.get('annotators',[])
if "original_input" in annotators:
annotators.remove("original_input")
cc_cohorts_path = status_json.get('cc_cohorts_path', '')
@@ -412,6 +413,7 @@ async def submit (request):
packs = job_options['packages']
run_args.append('--package')
run_args.append(packs)
annotators = []
else:
if 'annotators' in job_options and len(job_options['annotators']) > 0 and job_options['annotators'][0] != '':
annotators = job_options['annotators']
@@ -482,7 +484,7 @@ async def submit (request):
status_json['reports'] = []
pkg_ver = au.get_current_package_version()
status_json['open_cravat_version'] = pkg_ver
# status_json['annotators'] = annotators
status_json['annotators'] = annotators
if cc_cohorts_path is not None:
status_json['cc_cohorts_path'] = cc_cohorts_path
else:

0 comments on commit 945441b

Please sign in to comment.