git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a3c1dad
)
Deduplicate developer products
author
Christian Weiske
<cweiske@cweiske.de>
Tue, 9 Jun 2020 18:57:31 +0000
(20:57 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Tue, 9 Jun 2020 18:57:31 +0000
(20:57 +0200)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index e90ccc948043cad9b6c13df017c14689bebe4984..182708a050e0337f3f3c5c06b4117efa7430ddbd 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-551,6
+551,9
@@
function buildDeveloperProductOnly($product, $developer)
*/
function buildDeveloperProducts($products, $developer)
{
+ //remove duplicates
+ $products = array_values(array_column($products, null, 'identifier'));
+
$jsonProducts = [];
foreach ($products as $product) {
$jsonProducts[] = buildProduct($product);