fix txt
This commit is contained in:
@@ -95,9 +95,6 @@ wrenchboard=> SELECT * FROM use_preferences WHERE status = 1 ORDER BY id ASC;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
out["status"] = "OK";
|
out["status"] = "OK";
|
||||||
} catch (bad_parameter) {
|
} catch (bad_parameter) {
|
||||||
|
|||||||
@@ -460,6 +460,22 @@ abstract class BaseController extends Controller
|
|||||||
array("ty"=>"Completed Jobs", "id"=>"COMPLETED_JOBS", "tag"=>"hist_type_completed_jobs"),
|
array("ty"=>"Completed Jobs", "id"=>"COMPLETED_JOBS", "tag"=>"hist_type_completed_jobs"),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function generativeTypes(){
|
||||||
|
/*
|
||||||
|
SELECT * from generative_activities;
|
||||||
|
id | uid | title | search_text | status | added
|
||||||
|
----+--------------------------------------+----------------------+------------------------------------------+--------+----------------------------
|
||||||
|
1 | 4733e96b-7031-4684-bec3-f63da4417707 | General maths quiz | create 10 maths questions with answers | 1 | 2024-08-17 10:20:56.312351
|
||||||
|
2 | 149b7a30-f089-48c3-b351-3eb90e417c4c | General science quiz | create 10 science questions with answers | 1 | 2024-08-17 10:21:08.790259
|
||||||
|
(2 rows)
|
||||||
|
wrenchboard=#
|
||||||
|
*/
|
||||||
|
return [
|
||||||
|
array("uid"=>"4733e96b-7031-4684-bec3-f63da4417707", "title"=>"General maths quiz"),
|
||||||
|
array("uid"=>"149b7a30-f089-48c3-b351-3eb90e417c4c", "title"=>" General science quiz"),
|
||||||
|
];
|
||||||
|
}
|
||||||
public function summaryReturnData($in,$out){
|
public function summaryReturnData($in,$out){
|
||||||
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
||||||
$final_out["environment"] = $this->current_env + 0;
|
$final_out["environment"] = $this->current_env + 0;
|
||||||
@@ -470,6 +486,7 @@ abstract class BaseController extends Controller
|
|||||||
$final_out["current_version"] = 20240306;
|
$final_out["current_version"] = 20240306;
|
||||||
$final_out["family_types"] = $this->familyTypes();
|
$final_out["family_types"] = $this->familyTypes();
|
||||||
$final_out["history_types"] = $this->historyTypes();
|
$final_out["history_types"] = $this->historyTypes();
|
||||||
|
$final_out["generative_types"] = $this->generativeTypes();
|
||||||
$final_out["refer_link"] = "https://www.wrenchboard.com";
|
$final_out["refer_link"] = "https://www.wrenchboard.com";
|
||||||
return json_encode( $final_out );
|
return json_encode( $final_out );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user