diff --git a/src/pages/profile-api/show.php b/src/pages/profile-api/show.php index 1a290c6682bd71d6ec92049833c828d416780623..84a34bfb37622541a0477eaa5a2d6d06b84adbf2 100644 --- a/src/pages/profile-api/show.php +++ b/src/pages/profile-api/show.php @@ -43,6 +43,10 @@ $avg_rank = ( $rainbow['total_submissions_pos'] ) / 12; +// Wrangle rainbow scoreboard position into a more readable format. +$rainbow['rainbow_pos'] = $rainbow['scoreboard_pos']; +unset($rainbow['scoreboard_pos']); + render_json([ 'user_id' => $user['user_id'], 'username' => $user['username'],