core: add prometheus to ignored ua

This commit is contained in:
undefined committed 2023-03-26 23:06:41 +08:00
1 parent 4db06398ae
commit 5f246a24d2
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -251,7 +251,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
if (tid) {
this.tdoc = await contest.get(domainId, tid);
if (!this.tdoc) throw new ContestNotFoundError(domainId, tid);
if (pretest || contest.canShowScoreboard.call(this, this.tdoc, true, true)) this.tid = tid.toHexString();
if (pretest || contest.canShowScoreboard.call(this, this.tdoc, true)) this.tid = tid.toHexString();
else throw new PermissionError(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
}
if (pretest) {
+1
View File
@@ -228,6 +228,7 @@ const ignoreUA = [
'bingbot',
'Gatus',
'Googlebot',
'Prometheus',
'Uptime',
'YandexBot',
].join('\n');