Skip to content

Commit d87890b

Browse files
committed
Removing join as now all the columns are in the dynamic table...
1 parent 402003a commit d87890b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

qiita_db/metadata_template/base_metadata_template.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,8 @@ def to_dataframe(self):
10141014
conn_handler = SQLConnectionHandler()
10151015
cols = sorted(get_table_cols(self._table_name(self._id), conn_handler))
10161016
# Get all metadata for the template
1017-
sql = """SELECT {0}
1018-
FROM qiita.{1} st
1019-
JOIN qiita.{2} dt USING (sample_id)
1020-
WHERE st.{3} = %s""".format(", ".join(cols),
1021-
self._table,
1022-
self._table_name(self.id),
1023-
self._id_column)
1017+
sql = "SELECT {0}FROM qiita.{1}".format(", ".join(cols),
1018+
self._table_name(self.id))
10241019
meta = conn_handler.execute_fetchall(sql, (self._id,))
10251020

10261021
# Create the dataframe and clean it up a bit

0 commit comments

Comments
 (0)