Skip to content

Commit 6a969dc

Browse files
Refactor status check logic in study listing
Commented-out code enforcing active status by default.
1 parent b7d6733 commit 6a969dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openml_OS/models/api/v1/Api_study.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,11 @@ private function study_list($segs) {
629629
if ($status != 'all') {
630630
$whereClause .= ' AND status = "' . $status . '"';
631631
}
632-
} else {
632+
}
633+
/** Don't enforce that status must be active by default since we don't have an automated status check
634+
else {
633635
$whereClause .= ' AND status = "active"';
634-
}
636+
}*/
635637
$studies = $this->Study->getWhere($whereClause, null, $limit, $offset);
636638

637639
if (!$studies) {

0 commit comments

Comments
 (0)