• spaps

    (@spaps)


    Hello,

    I have managed to import the score automatically when game is finished.
    Do you think you can create a plugin to calcule score with also the Force setting in option ?
    Idally if this could be lauch automatically 1 minutes after a game finish
    That would be great

    or

    Lauch the Recalculate score every 5 minutes


    Thanks for your work

    • This topic was modified 5 months ago by spaps.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    The plugin has a WP-CLI function to calculate the score. Maybe you can add that to a cron job that runs every X minutes.

    If you want to link the action to a game finish, you can manually trigger the function. Not sure how you automatically update the scores, but if that action can be extended via a hook, then you can use that to start the calculation.

    Thread Starter spaps

    (@spaps)

    I get the score through an API then I created a table to match the match_id and have a trigger to update the footpool table once the game is finished

    What is the WP-CLI function to launch in a cron please ?

    Thank you

    Plugin Author AntoineH

    (@antoineh)

    The available CLI functions are documented on the help page.

    Thread Starter spaps

    (@spaps)

    Found it, thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.