]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/generate-code-contributors.ts
Translated using Weblate (Czech)
[github/Chocobozzz/PeerTube.git] / scripts / generate-code-contributors.ts
index 8493d3d0ca2e04f7d74203c66452e6a8334325ea..5635d988952e052131507e0fe0ef92be6cf3cc29 100755 (executable)
@@ -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) as { username: string }[], 'username')
 }