Skip to content

Commit

Permalink
g13-1week: fix bug in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Dec 26, 2023
1 parent 4b000c2 commit 9023daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports/g13-1week.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function runForDate(date: MwnDate) {
if (/^\s*#redirect/i.test(text)) { // check if it's a redirect
// the db query should omit redirects, this happens only because of db lag
// or if the page was converted to redirect after the db fetch
tableInfo[page.title].skip = true; // skip it
tableInfo[pg.title].skip = true; // skip it
continue;
}
}
Expand Down Expand Up @@ -249,7 +249,7 @@ async function makeOldLinks() {
process.chdir(__dirname);

if (argv.runDate) {
const runDate = new bot.Date(argv.runDate);
const runDate = new bot.Date(argv.runDate + " Z");
log(`[+] Running for drafts with last edit on ${runDate.format('D MMMM YYYY')}`);
await runForDate(runDate);

Expand Down

0 comments on commit 9023daa

Please sign in to comment.