Skip to content

Commit

Permalink
Allow API logon as the submit client uses it
Browse files Browse the repository at this point in the history
Alternative would be to UNION over teams which submitted and teams which
did a GUI logon but that is more expensive.
  • Loading branch information
vmcj committed Sep 2, 2023
1 parent 39b38c1 commit 8b47fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Service/ScoreboardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8b47fb9

Please sign in to comment.