Skip to content

Commit 1739db8

Browse files
committed
Don't serve parquet from test server as they point to production
1 parent 9f9c171 commit 1739db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openml_OS/models/api/v1/Api_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ private function data($data_id) {
842842
if ($data_status != false) {
843843
$dataset->status = $data_status->status;
844844
}
845-
if ($dataset->format != 'Sparse_ARFF') {
845+
if ($dataset->format != 'Sparse_ARFF' && BASE_URL != "https://test.openml.org/") {
846846
$bracket = sprintf('%04d', floor($data_id / 10000));
847847
$padded_id = sprintf('%04d', $data_id);
848848
$url = MINIO_URL . 'datasets/' . $bracket . '/' . $padded_id . '/dataset_' . $data_id . '.pq';

0 commit comments

Comments
 (0)