Skip to content

Commit 01f20ee

Browse files
committed
1 parent faf74df commit 01f20ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

qiita_db/test/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def test_generate_analysis_list(self):
763763
obs = qdb.util.generate_analysis_list([1, 2, 3, 5])
764764
exp = [{'mapping_files': [
765765
(16, qdb.util.get_filepath_information(16)['fullpath'])],
766-
'description': 'A test analysis', 'artifacts': [9], 'name':
766+
'description': 'A test analysis', 'artifacts': [8, 9], 'name':
767767
'SomeAnalysis', 'analysis_id': 1, 'visibility': 'private'},
768768
{'mapping_files': [], 'description': 'Another test analysis',
769769
'artifacts': [], 'name': 'SomeSecondAnalysis',

qiita_db/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,7 @@ def generate_analysis_list(analysis_ids, public_only=False):
19421942

19431943
sql = """
19441944
SELECT analysis_id, a.name, a.description, a.timestamp,
1945-
array_agg(DISTINCT CASE WHEN command_id IS NOT NULL
1946-
THEN artifact_id END),
1945+
array_agg(DISTINCT artifact_id),
19471946
array_agg(DISTINCT visibility),
19481947
array_agg(DISTINCT CASE WHEN filepath_type = 'plain_text'
19491948
THEN filepath_id END)

0 commit comments

Comments
 (0)