Skip to content

Commit

Permalink
bot-monitor: add header in report
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Jun 19, 2023
1 parent d22fc50 commit dde89a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot-monitor/Tabulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export class Tabulator {
try {
replagHours = await new enwikidb().getReplagHours();
} catch (e) {}
let text = (replagHours > 6 ? `Database replication lag is ${replagHours} hours; as a result some bots may not be working` : '') +
let text = '== Current status report ==' +
(replagHours > 6 ? `Database replication lag is ${replagHours} hours; as a result some bots may not be working` : '') +
'<noinclude>' + mwn.template('/header', {
errcount: this.invalidRules.length ? String(this.invalidRules.length) : null
}) + '</noinclude>\n' + Tabulator.table.getText();
Expand Down

0 comments on commit dde89a3

Please sign in to comment.