Page 1 of 1

Mod Portal and API "latest release" inconsistentcy issue

Posted: Tue Jun 11, 2024 4:32 am
by BrainGamer_
The Mod Portal website and API give different results for the latest release of Bio Industries.
It seems like website also sorts by game version (or upload time?) before determining the latest release while the API does not.

Request used to the API: https://mods.factorio.com/api/mods?page_size=max. Specifying the game version in the API call gets rid of the issue but that is unfortunately incompatible with hide_deprecated=false.

edit: I guess this is also related to 66989
portal.png
portal.png (72.72 KiB) Viewed 487 times
api.png
api.png (41.12 KiB) Viewed 487 times

Re: Mod Portal and API "latest release" inconsistentcy issue

Posted: Tue Jun 11, 2024 3:40 pm
by vinzenz
BrainGamer_ wrote: Tue Jun 11, 2024 4:32 am Request used to the API: https://mods.factorio.com/api/mods?page_size=max. Specifying the game version in the API call gets rid of the issue but that is unfortunately incompatible with hide_deprecated=false.
I fixed the version filter overriding hide_deprecated=false. Fixing the API <-> mod portal inconsistency will take some more work, but we'll do something about it before 2.0 releases.

Re: Mod Portal and API "latest release" inconsistentcy issue

Posted: Tue Jun 11, 2024 4:00 pm
by BrainGamer_
Amazing! Thanks a lot :)