From ebd316d142d1619ded87277c274ea39df2eb21c2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Nov 2019 08:56:27 +0100 Subject: Fix duplicated in CREDITS --- scripts/generate-code-contributors.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/generate-code-contributors.ts') 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 @@ import { registerTSPaths } from '../server/helpers/register-ts-paths' + registerTSPaths() import { doRequest } from '../server/helpers/requests' import { readFileSync } from 'fs-extra' +import { uniqBy } from 'lodash' run() .then(() => process.exit(0)) @@ -89,5 +91,5 @@ async function fetchZanata (zanataUsername: string, zanataPassword: string) { get(year2019, headers) ]) - return results2018.concat(results2019) + return uniqBy((results2018.concat(results2019)), 'username') } -- cgit v1.2.3