[Scummvm-git-logs] scummvm-web master -> d9e02ca090f566e3185c87c4cae89981785255a9
Thunderforge
noreply at scummvm.org
Tue Jan 24 00:58:20 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:
d9e02ca090 WEB: Using new games table backwards compatibility
Commit: d9e02ca090f566e3185c87c4cae89981785255a9
https://github.com/scummvm/scummvm-web/commit/d9e02ca090f566e3185c87c4cae89981785255a9
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2023-01-23T18:58:14-06:00
Commit Message:
WEB: Using new games table backwards compatibility
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 356d6748..b3ca1217 100644
--- a/include/DataUtils.php
+++ b/include/DataUtils.php
@@ -24,7 +24,7 @@ class DataUtils
const SHEET_IDS = [
'platforms' => '1061029686',
'compatibility' => '854570757',
- 'games' => '1946612063',
+ 'games' => '1775285192',
'engines' => '0',
'companies' => '226191984',
'versions' => '1225902887',
@@ -83,6 +83,12 @@ class DataUtils
// Convert TRUE/FALSE strings to Booleans
foreach ($data as $objKey => $obj) {
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) {
+ $data[$objKey][$key] = substr($val, strpos($val, ':') + 1);
+ }
+
if ($val === 'TRUE') {
$data[$objKey][$key] = true;
} elseif ($val === 'FALSE') {
More information about the Scummvm-git-logs
mailing list