Skip to content

Commit e9d3345

Browse files
committed
addressing @squirrelo comments
1 parent 1e3a802 commit e9d3345

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

qiita_db/metadata_template/base_metadata_template.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,7 @@ def delete(cls, id_):
771771

772772
conn_handler.add_to_queue(
773773
queue,
774-
"DROP TABLE IF EXISTS qiita.{0}".format(table_name))
775-
776-
conn_handler.add_to_queue(
777-
queue,
778-
"DROP TABLE IF EXISTS qiita.{0}".format(table_name))
774+
"DROP TABLE qiita.{0}".format(table_name))
779775

780776
conn_handler.add_to_queue(
781777
queue,

qiita_pet/handlers/study_handlers/description_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ def delete_sample_template(self, study, user, callback):
661661
"<b><i>%s</i></b>" % (sample_template_id, study.title))
662662
msg_level = "success"
663663
except Exception as e:
664-
msg = "Couldn't remove %d raw data: %s" % (sample_template_id,
665-
str(e))
664+
msg = "Couldn't remove %d sample template: %s" % (
665+
sample_template_id, str(e))
666666
msg_level = "danger"
667667

668668
callback((msg, msg_level, 'study_information_tab', None, None))

0 commit comments

Comments
 (0)