From 8b47fb988f948361c941e5b954e8935e846167b5 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:49:12 +0200 Subject: [PATCH] Allow API logon as the submit client uses it Alternative would be to UNION over teams which submitted and teams which did a GUI logon but that is more expensive. --- webapp/src/Service/ScoreboardService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Service/ScoreboardService.php b/webapp/src/Service/ScoreboardService.php index 4512defd8f5..0856f6064ee 100644 --- a/webapp/src/Service/ScoreboardService.php +++ b/webapp/src/Service/ScoreboardService.php @@ -953,7 +953,7 @@ protected function getTeams(Contest $contest, bool $jury = false, Filter $filter $queryBuilder->andWhere('tc.visible = 1'); if ($show_filter === self::SHOW_TEAM_AFTER_LOGIN) { $queryBuilder - ->join('t.users', 'u', Join::WITH, 'u.last_login IS NOT NULL'); + ->join('t.users', 'u', Join::WITH, 'u.last_login IS NOT NULL OR u.last_api_login IS NOT NULL'); } elseif ($show_filter === self::SHOW_TEAM_AFTER_SUBMIT) { $queryBuilder ->join('t.submissions', 's', Join::WITH, 's.contest = :cid')