diff options
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 | } |