Skip to content

Commit 6e266c2

Browse files
Resolved merge conflicts between master and develop in favour of develop
2 parents fdef17e + 4f7cd5d commit 6e266c2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ openml_OS/third_party/OpenML/Java/old-evaluate.jar
55
docs/site/
66
*.icloud
77
*.DS_store
8+
openml_OS/vendor/
9+
openapi/vendor/

openml_OS/models/api/v1/Api_data.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ private function data_fork() {
581581
$latest_version = $this->Dataset-> getWhereSingle('`name` = "' . $dataset->name . '"', 'CAST(`version` AS DECIMAL) DESC');
582582
$dataset->version = $latest_version->version + 1;
583583
unset($dataset->did);
584+
584585
$new_data_id = $this->Dataset->insert($dataset);
585586
if (!$new_data_id) {
586587
$this->returnError(1072, $this->version);
@@ -934,7 +935,6 @@ private function data_reset($data_id) {
934935
* ),
935936
*)
936937
*/
937-
938938
private function data_add_topic($id, $topic) {
939939
# Data id and topic are required
940940
if ($id == false || $topic == false) {
@@ -1281,6 +1281,7 @@ private function data_upload() {
12811281
$this->returnError(134, $this->version);
12821282
return;
12831283
}
1284+
12841285
$desc['did'] = $id;
12851286
$desc_id = $this->Dataset_description->insert($desc);
12861287
if (!$desc_id) {
@@ -1735,7 +1736,7 @@ private function data_features_upload() {
17351736
} else {
17361737
$nominal_values = false;
17371738
}
1738-
1739+
17391740
//actual insert of the feature
17401741
if (array_key_exists('ontology', $feature)) {
17411742
$ontologies = $feature['ontology'];

openml_OS/views/pages/api_new/v1/xml/pre.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@
529529
$this->apiErrors[1071] = 'Unknown dataset';
530530
$this->apiErrors[1072] = 'Failed to insert record in database';
531531

532-
533532
//openml.data.topic
534533
$this->apiErrors[1080] = 'Please provide a dataset id and a topic.';
535534
$this->apiErrors[1081] = 'Unknown dataset.';
@@ -551,5 +550,4 @@
551550
$this->apiErrors[1104] = 'Failure to write to the database';
552551
$this->apiErrors[1105] = 'Feature description too long';
553552
$this->apiErrors[1106] = 'Feature description meant as ontology, but is not a valid URL';
554-
555553
?>

0 commit comments

Comments
 (0)