Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webapp/public/js/domjudge.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ function updateMenuJudgehosts(data)
sendNotification('Judgehost down.',
{'tag': 'host_'+data[i].hostname+'@'+
Math.floor(data[i].polltime),
'link': domjudge_base_url + '/jury/judgehosts/' + encodeURIComponent(data[i].hostname),
'link': domjudge_base_url + '/jury/judgehosts/' + encodeURIComponent(data[i].judgehostid),
'body': data[i].hostname + ' is down'});
}
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/Service/DOMJudgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function getUpdates(): array
}

$judgehosts = $this->em->createQueryBuilder()
->select('j.hostname', 'j.polltime')
->select('j.judgehostid', 'j.hostname', 'j.polltime')
->from(Judgehost::class, 'j')
->andWhere('j.enabled = 1')
->andWhere('j.hidden = 0')
Expand Down
Loading