Skip to content

Commit

Permalink
Expermineting to drag results
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Jun 18, 2024
1 parent e893e78 commit 4b10835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions api/ui/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ public function get() {
}
break;
case 'up':
$arr = $this->getData();
if ($arr === null) {
echo "is nunll";
break;
}
foreach ($arr as $key => $value) {
echo $key . ": " . $value . "\n";
}
$system = new System($this->get['systemId']);
$arr = $system->getResultsAll();
echo $arr;
break;
case 'down':
echo 'down';
Expand Down
2 changes: 1 addition & 1 deletion core/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function set() {
throw new Exception('The action SET is not defined!');
}
public function setData($rearrangeddata) {
$this->data->content = $rearrangeddata;
$this->data = $rearrangeddata;
}
public function getData() {
return $this->data;
Expand Down

0 comments on commit 4b10835

Please sign in to comment.