Skip to content

Commit 2e067a4

Browse files
authored
Merge pull request #54 from stjude/bugfix/remove-extra-quotes
Remove extra quotes and name derived table
2 parents 97476af + 42e3365 commit 2e067a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scripts/add_bam_pair_xenocp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def add_bam_pair_stp(raptr, sample, target, project, subproject, **kwargs):
111111
genome_id = raptr.fetch_item_or_fail(query, (bam_id,))
112112

113113
# Get anls type named xenocp
114-
query = """select anls_type_id from raptr.anls_type where name='%s'"""
114+
query = """select anls_type_id from raptr.anls_type where name=%s"""
115115
anls_type_id = raptr.fetch_item_or_fail(query, ('xenocp',))
116116

117117
# Add a new bam
@@ -164,7 +164,7 @@ def add_bam_pair_bam_id(raptr, bam_id, **kwargs):
164164
"""
165165
query = """select formal_name, target_name, project_name, subproject from sample_target_project_view inner join
166166
(select sample_target_project_id from bam_and_tpl where bam_id = %s and bam_status = 'Normal'
167-
and legacy = false)
167+
and legacy = false) bt
168168
using (sample_target_project_id);"""
169169
(sample, target, project, subproject) = raptr.fetch_row_or_fail(query, (bam_id,))
170170
add_bam_pair_stp(raptr, sample, target, project, subproject)

0 commit comments

Comments
 (0)