File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1464,7 +1464,7 @@ def generate_study_list(user, visibility):
1464
1464
(SELECT COUNT(sample_id) FROM qiita.study_sample
1465
1465
WHERE study_id=qiita.study.study_id)
1466
1466
AS number_samples_collected,
1467
- (SELECT EXIST (
1467
+ (SELECT EXISTS (
1468
1468
SELECT 1 FROM qiita.study_sample
1469
1469
WHERE study_id = qiita.study.study_id LIMIT 1))
1470
1470
AS has_sample_info,
@@ -1563,7 +1563,9 @@ def generate_study_list(user, visibility):
1563
1563
del info ["shared_with_email" ]
1564
1564
1565
1565
# add extra info about sample information file
1566
- has_sample_info = info ['has_sample_info' ]
1566
+ if info ['has_sample_info' ]:
1567
+ qdb .metadata_template .sample_template .SampleTemplate (
1568
+ info ['study_id' ])
1567
1569
del info ['has_sample_info' ]
1568
1570
1569
1571
infolist .append (info )
You can’t perform that action at this time.
0 commit comments