diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-05 08:56:27 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-05 08:56:27 +0100 |
commit | ebd316d142d1619ded87277c274ea39df2eb21c2 (patch) | |
tree | e0dc61830be278b22de94e160ff2cbbd719b2873 /scripts/generate-code-contributors.ts | |
parent | 71056d000864f0bc059626627772ddb61055f211 (diff) | |
download | PeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.tar.gz PeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.tar.zst PeerTube-ebd316d142d1619ded87277c274ea39df2eb21c2.zip |
Fix duplicated in CREDITS
Diffstat (limited to 'scripts/generate-code-contributors.ts')
-rwxr-xr-x | scripts/generate-code-contributors.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/generate-code-contributors.ts b/scripts/generate-code-contributors.ts index 8493d3d0c..8cc3dc5b4 100755 --- a/scripts/generate-code-contributors.ts +++ b/scripts/generate-code-contributors.ts | |||
@@ -1,8 +1,10 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | 1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' |
2 | |||
2 | registerTSPaths() | 3 | registerTSPaths() |
3 | 4 | ||
4 | import { doRequest } from '../server/helpers/requests' | 5 | import { doRequest } from '../server/helpers/requests' |
5 | import { readFileSync } from 'fs-extra' | 6 | import { readFileSync } from 'fs-extra' |
7 | import { uniqBy } from 'lodash' | ||
6 | 8 | ||
7 | run() | 9 | run() |
8 | .then(() => process.exit(0)) | 10 | .then(() => process.exit(0)) |
@@ -89,5 +91,5 @@ async function fetchZanata (zanataUsername: string, zanataPassword: string) { | |||
89 | get(year2019, headers) | 91 | get(year2019, headers) |
90 | ]) | 92 | ]) |
91 | 93 | ||
92 | return results2018.concat(results2019) | 94 | return uniqBy((results2018.concat(results2019)), 'username') |
93 | } | 95 | } |