mirror of
https://github.com/one-among-us/data.git
synced 2024-11-23 03:27:38 +08:00
[F] Avoid duplicates
This commit is contained in:
parent
185586a137
commit
a503f4e24e
@ -41,6 +41,8 @@ function buildPeopleInfoAndList() {
|
|||||||
...Object.fromEntries(PEOPLE_LIST_KEYS.map(key => [key, info[key]]))
|
...Object.fromEntries(PEOPLE_LIST_KEYS.map(key => [key, info[key]]))
|
||||||
} as PeopleMeta;
|
} as PeopleMeta;
|
||||||
|
|
||||||
|
// Avoid duplicates
|
||||||
|
if (peopleList.filter(it => it.id == peopleMeta.id).length == 0)
|
||||||
peopleList.push(peopleMeta);
|
peopleList.push(peopleMeta);
|
||||||
|
|
||||||
// Combine comments in people/${dirname}/comments/${cf}.json
|
// Combine comments in people/${dirname}/comments/${cf}.json
|
||||||
|
Loading…
Reference in New Issue
Block a user