Skip to content

Commit

Permalink
Filter a couple of media accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdirolf committed Oct 29, 2024
1 parent ba2ad3d commit 7deef43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/scripts/weeklyEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async function topPuzzlesForWeek(): Promise<
return Promise.all(
Object.entries(totalC)
.sort((a, b) => b[1] - a[1])
.slice(0, 150)
.slice(0, 250)
.map(async ([id]): Promise<(DBPuzzleT & { id: string }) | null> => {
const dbres = await db.collection('c').doc(id).get();
if (!dbres.exists) {
Expand Down Expand Up @@ -142,6 +142,10 @@ async function topPuzzlesForWeek(): Promise<
if (p.no_cs) {
return false;
}
// Filter a couple of media accts
if (p.a === 'ira2BUejBHgWTBVlQdOqVPtIaSB2') {
return false;
}
return true;
})
.map((p): [string, string, Category | undefined, string] => {
Expand Down

0 comments on commit 7deef43

Please sign in to comment.