From c34b13d74b766fc1b2da4552dc516ba548cac999 Mon Sep 17 00:00:00 2001 From: cetteup Date: Fri, 22 Nov 2024 14:39:50 +0100 Subject: [PATCH] fix: Return all obtained levels for badges --- src/ASP/aspx/getawardsinfo.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/ASP/aspx/getawardsinfo.php b/src/ASP/aspx/getawardsinfo.php index c72a4f01..1a7ab8ab 100644 --- a/src/ASP/aspx/getawardsinfo.php +++ b/src/ASP/aspx/getawardsinfo.php @@ -60,12 +60,20 @@ // We will not use a view this time, performance is key $query = <<query($query); while ($award = $stmt->fetch()) { - // Ribbons will get a 'first' value of 0 - $id = (int)$award['id']; - $first = (($id > 2000000) && ($id < 3000000)) ? $award['first'] : 0; - $Response->writeDataLine($id, $award['level'], $award['earned'], $first); + $Response->writeDataLine($award['id'], $award['level'], $award['earned'], $award['first']); } $Response->send();