Skip to content

Commit 6a553f6

Browse files
committed
fix if state == submitting:
1 parent 292e193 commit 6a553f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_pet/handlers/study_handlers/ebi_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def post(self, preprocessed_data_id):
124124
study = Artifact(preprocessed_data_id).study
125125
state = study.ebi_submission_status
126126
if state == 'submitting':
127-
level = 'danger'
128127
message = "Cannot resubmit! Current state is: %s" % state
128+
self.display_template(preprocessed_data_id, message, 'danger')
129129
else:
130130
qiita_plugin = Software.from_name_and_version('Qiita', 'alpha')
131131
cmd = qiita_plugin.get_command('submit_to_EBI')

0 commit comments

Comments
 (0)