Badge rewrite to check for ID plus script change; constant username>bid (badge ID)
This commit is contained in:
parent
a37cf2ecd5
commit
0faebb9321
4 changed files with 26 additions and 28 deletions
6
.github/scripts/convert/index.mjs
vendored
6
.github/scripts/convert/index.mjs
vendored
|
|
@ -23,8 +23,8 @@ for (let i = 0; i < avis.length; i++) {
|
|||
const badges = {};
|
||||
for (let i = 0; i < avis.length; i++) {
|
||||
const l = avis[i];
|
||||
const username = l.match(badgeMatcher)?.[1];
|
||||
if (username) badges[username] = avis[i + 10].match(imageMatcher)[1];
|
||||
const bid = l.match(badgeMatcher)?.[1];
|
||||
if (bid) badges[bid] = avis[i + 10].match(imageMatcher)[1];
|
||||
}
|
||||
|
||||
await writeFile(
|
||||
|
|
@ -38,4 +38,4 @@ await writeFile(
|
|||
parser: "json",
|
||||
}
|
||||
)
|
||||
);
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue