World Cup Scoreboard - new version

elmortero
Posts: 233
Joined: Sunday 29 November 2015 21:46
Target OS: Raspberry Pi
Domoticz version: 3.9639
Location: Spain
Contact:

Re: World Cup Scoreboard - new version

Post by elmortero » Friday 22 June 2018 21:19

MikeF wrote:
Friday 22 June 2018 19:22
There are problems with the feed today. The matches are in the wrong order, with the wrong times, and the 3rd match (which appears second) is showing a status of 'pending correction' - which the dzVents script doesn't recognise.
Haven't had any issues.
About the wrong order: you can add this to the url to always show the results ordered by time in ascending order: ?by_date=asc

for the 'pending correction':
You could consider that game as finished and add the condition or if status == 'pending correction' to the line if status == 'completed' so it is like this:
if status == 'completed' or status == 'pending correction' then

Should be ok then

Post Reply

Who is online

Users browsing this forum: Ascari and 2 guests