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
(parent:
aefe5b9
)
Ignore broken releases
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 22 Oct 2022 10:00:33 +0000
(12:00 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 22 Oct 2022 10:00:33 +0000
(12:00 +0200)
Related: https://github.com/ouya-saviors/ouya-game-data/issues/159
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index 3380d6ad74b0746af52e5835309a853a9749458a..4495dc3ea230c970a9985b46925e1fdc3c9a62e0 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-890,6
+890,9
@@
function addMissingGameProperties($game)
$firstReleaseTimestamp = null;
$latestReleaseTimestamp = 0;
foreach ($game->releases as $release) {
+ if (isset($release->broken) && $release->broken) {
+ continue;
+ }
if (!isset($release->publicSize)) {
$release->publicSize = 0;
}