load all igsb platform data into app

This commit is contained in:
Georges-Antoine Assi
2025-07-13 14:59:54 -04:00
parent c23249358e
commit cfe848e14a
4 changed files with 4442 additions and 248 deletions

View File

@@ -65,7 +65,7 @@ def get_supported_platforms(request: Request) -> list[PlatformSchema]:
now = datetime.now(timezone.utc)
supported_platforms = []
for platform in IGDB_PLATFORM_LIST:
for platform in IGDB_PLATFORM_LIST.values():
platform_id = db_platforms_map.get(platform["name"], -1)
sup_plat = {
"id": platform_id,

File diff suppressed because it is too large Load Diff

View File

@@ -128,14 +128,6 @@ async def scan_platform(
hasheous_platform = meta_hasheous_handler.get_platform(platform_attrs["slug"])
tgdb_platform = meta_tgdb_handler.get_platform(platform_attrs["slug"])
print(f"IGDB: {igdb_platform['igdb_id']}")
print(f"Moby: {moby_platform['moby_id']}")
print(f"SS: {ss_platform['ss_id']}")
print(f"RA: {ra_platform['ra_id']}")
print(f"Launchbox: {launchbox_platform['launchbox_id']}")
print(f"Hasheous: {hasheous_platform['hasheous_id']}")
print(f"TGDB: {tgdb_platform['tgdb_id']}")
platform_attrs["name"] = platform_attrs["slug"].replace("-", " ").title()
platform_attrs.update(
{

View File

@@ -30,7 +30,7 @@ if __name__ == "__main__":
matched_hasheous_ids: list[int] = []
matched_ra_ids: list[int] = []
for plt in IGDB_PLATFORM_LIST:
for plt in IGDB_PLATFORM_LIST.values():
moby_platform = MOBYGAMES_PLATFORM_LIST.get(plt["slug"])
moby_slug = moby_platform["slug"] if moby_platform else None