good client and coach data viewing
This commit is contained in:
@ -13,9 +13,11 @@ if ($method !== 'GET') {
|
||||
try {
|
||||
$coachID = trim((string)($_GET['coachID'] ?? ''));
|
||||
if ($coachID !== '' && !empty($_GET['recent'])) {
|
||||
$recent = qdb_coach_recent_submissions($pdo, $tokenRec, $coachID);
|
||||
$limit = isset($_GET['limit']) ? (int)$_GET['limit'] : 100;
|
||||
$offset = isset($_GET['offset']) ? (int)$_GET['offset'] : 0;
|
||||
$recent = qdb_coach_recent_submissions($pdo, $tokenRec, $coachID, $limit, $offset);
|
||||
qdb_discard($tmpDb, $lockFp);
|
||||
json_success(['submissions' => $recent]);
|
||||
json_success($recent);
|
||||
}
|
||||
|
||||
$coaches = qdb_coach_activity_list($pdo, $tokenRec);
|
||||
|
||||
Reference in New Issue
Block a user