Code Monkey home page Code Monkey logo

Comments (10)

mauserrifle avatar mauserrifle commented on August 16, 2024

Hi schmoomsm ,

Each dropdown option is a result with 1 or multiple logs. Thus you have total control over. For example you could make a results array with season 1, season 2 (in dropdown). And each season result can contain multiple logs (race 1, race 2 etc).

As you can see in the example on the API page:
https://simresults.net/example.json
https://simresults.net/remote?results=https://simresults.net/example.json

In your case you have multiple logs in 1 result array. If you wish to have multiple dropdowns containing just 1 race. Create multiple results array with 1 log only.

Not related but I see now that I should make the config also per result possible (optional). I will make this soon.

Hope it makes sense with the provided example.

Cheers,
Maurice

from simresults.

schmoomsm avatar schmoomsm commented on August 16, 2024

Thanks for the response! I think I understand.

from simresults.

schmoomsm avatar schmoomsm commented on August 16, 2024

Got it working!!! Thank you!

JSON: https://battlegoatracing.com/bgr/ACC.json and https://battlegoatracing.com/bgr/AC.json

Thanks again for this great tool!

from simresults.

mauserrifle avatar mauserrifle commented on August 16, 2024

Great! Though the dropdown active selection seems to be not working fully here when I browse your results page. I think it's a bug on my part. I will look into it Tuesday I think.

from simresults.

schmoomsm avatar schmoomsm commented on August 16, 2024

Thx!

My site is set-up to not cache json files per your direction and I have my links pointing to a static version number. When my jsons are recreated each day (game server and webserver sync results file once per day and generate a new json per game), will my links continue to show the newest content?

Link to ACC: https://simresults.net/remote?results=http://battlegoatracing.com/bgr/ACC.json&version=10
Link to AC: https://simresults.net/remote?results=http://battlegoatracing.com/bgr/AC.json&version=10

Thx.

from simresults.

mauserrifle avatar mauserrifle commented on August 16, 2024

Ye if you increment the version number, simresults should ignore it's own cache and always fetch your updated json.

from simresults.

schmoomsm avatar schmoomsm commented on August 16, 2024

what if my increment stays at 10? Will I always see dated results, or will it force a refetch each day? Using wordpress so making it increment that version number isn't simple (for me).

from simresults.

mauserrifle avatar mauserrifle commented on August 16, 2024

Cache is 24 hours. So it will eventually be refetching and up to date.

from simresults.

schmoomsm avatar schmoomsm commented on August 16, 2024

Cache is 24 hours. So it will eventually be refetching and up to date.

Excellent. Thx.

from simresults.

mauserrifle avatar mauserrifle commented on August 16, 2024

The dropdown selection issue is fixed :) Also added support for a config per results group.

I'm closing this issue now. If you have more questions don't hesitate to ask! You helped improve the tool 👍

from simresults.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.