Skip to content

Commit

Permalink
fix: find pre-2007 activity
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
  • Loading branch information
LucasLarson committed Jul 26, 2023
1 parent b148316 commit 71f6dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/achievements/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function total({imports}) {
//Extracting total from github.com/search
for (let i = 0; (i < 100) && ((!total.users) || (!total.repositories)); i++) {
const page = await browser.newPage()
await page.goto("https://github.com/search?q=+created%3A%3E2007")
await page.goto("https://github.com/search?q=created%3A%3E%3D1970")
const results = await page.evaluate(() => [...[...document.querySelectorAll("h2")].filter(node => /Filter by/.test(node.innerText)).shift()?.nextSibling?.innerText.trim().matchAll(/(?<type>Repositories|Users|Issues)\n(?<count>.*?)M/g) ?? []]) ?? null
for (const result of results) {
const type = result[1]?.toLowerCase()
Expand Down

0 comments on commit 71f6dbd

Please sign in to comment.