quantified-uncertainty / metaforecast

Fetch forecasts from prediction markets/forecasting platforms to make them searchable. Integrate these forecasts into other services.
https://metaforecast.org/
MIT License
57 stars 5 forks source link

forecastingPlatforms in URL is broken #13

Closed berekuk closed 2 years ago

berekuk commented 2 years ago

getServerSideProps from /index and /capture passes platformsWithLabels array of objects, and commonDisplay code expects an array of objects.

But when forecastingPlatforms is passes in URL, it's just a string of "Foo|Bar|Baz" which is not handled anywhere as far as I can see.

So, any URL such as https://metaforecast.org/?forecastingPlatforms=Betfair doesn't really filter by forecastingPlatforms, and also doesn't show platforms in advanced options' select widget.