[Scummvm-git-logs] scummvm-web master -> 89c2c79174e9930d2950f9e20394a81a918d9ab4
Thunderforge
noreply at scummvm.org
Tue Jan 24 01:59:39 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
89c2c79174 WEB: Using new game_downloads table (backwards compatible)
Commit: 89c2c79174e9930d2950f9e20394a81a918d9ab4
https://github.com/scummvm/scummvm-web/commit/89c2c79174e9930d2950f9e20394a81a918d9ab4
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2023-01-23T19:59:33-06:00
Commit Message:
WEB: Using new game_downloads table (backwards compatible)
Pulling data from a sheet with the new id
Changed paths:
include/DataUtils.php
diff --git a/include/DataUtils.php b/include/DataUtils.php
index 70f9393a..3917bdba 100644
--- a/include/DataUtils.php
+++ b/include/DataUtils.php
@@ -32,7 +32,7 @@ class DataUtils
'series' => '1095671818',
'screenshots' => '168506355',
'scummvm_downloads' => '1057392663',
- 'game_downloads' => '1287892109',
+ 'game_downloads' => '810295288',
'director_demos' => '1256563740',
];
@@ -85,7 +85,7 @@ class DataUtils
foreach ($obj as $key => $val) {
// TODO Temporarily convert new game ids to the old format.
// When we are fully migrated, remove this
- if ($key === 'id' && strpos($val, ':') !== FALSE) {
+ if (($key === 'id' || $key === 'game_id') && strpos($val, ':') !== FALSE) {
$data[$objKey][$key] = substr($val, strpos($val, ':') + 1);
}
More information about the Scummvm-git-logs
mailing list