Skip to content

Commit 53b5b93

Browse files
committed
adding @josenavas comment
1 parent 803299f commit 53b5b93

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

qiita_db/study.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,15 @@ def delete(cls, id_):
394394
"DELETE FROM qiita.study_environmental_package WHERE study_id = "
395395
"%s", (id_, ))
396396

397+
conn_handler.add_to_queue(
398+
queue,
399+
"DELETE FROM qiita.study_users WHERE study_id = %s", (id_, ))
400+
401+
conn_handler.add_to_queue(
402+
queue,
403+
"DELETE FROM qiita.investigation_study WHERE study_id = "
404+
"%s", (id_, ))
405+
397406
conn_handler.add_to_queue(
398407
queue,
399408
"DELETE FROM qiita.study WHERE study_id = %s", (id_, ))

0 commit comments

Comments
 (0)