Streak bug

Have a problem regarding a match or otherwise with the league or a suggestion for the site/rules/anything? Share and explain it here clearly, collectedly and calmly.
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts

Streak bug

Post Posted: Mon Oct 18, 2010 4:54 pm

I noticed that there is a bug on our divison page (that is division 6 ctf). After winning the first two matches the streak says: 1W. Offcourse that should be 2W because of the two wins Wink

Gnurkus
Admin
Admin
 

Re: Streak bug

Post Posted: Mon Oct 18, 2010 5:01 pm

Yeah, it's an issue I've never got round to fixing. It doesn't actually look at recent performance it simply sets a flag when a result is entered. If you (or an admin more likely) were to enter a result incorrectly it would reset the flag, and even if the score was immediately corrected the flag wouldn't be set back to the value it should've been in the first place.

I really ought to do that a different way, just no-one ever seems to notice so it keeps getting put off. Embarassed
_________________

Kendle
Webmaster
Webmaster
 

Re: Streak bug

Post Posted: Thu Oct 21, 2010 10:32 am

Well it happened again now, and offcourse, I noticed it again Smile

We now won 3 matches but smt went wrong with the score entering (or the game actually). Anyway it should be 3W now but it says 1W again Wink

Gnurkus
Admin
Admin
 

Re: Streak bug

Post Posted: Thu Oct 21, 2010 2:18 pm

OK, I think I've fixed this. I've used the images from the Ladder display rather than text indicators like "3W" etc. and looked at actual past performance rather than the flags set in the table record.

Here's Div #6 in the CTF League :-

www.urban-zone.org/ind...ivision=14

One drawback of this method is it adds an extra database query per team, which for the CTF League means an extra 59 queries to produce the full table. It'll be interesting to see how or if this effects performance (it shouldn't do but one of the keys points of the competition system is it's very optimised as far as db queries are concerned and I don't really like adding a big chunk of queries like this if it can be helped).

Kendle
Webmaster
Webmaster
 
Page 1 of 1



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


±User Info


Welcome Anonymous
Nickname

Password

Security Code
Security Code

Type Code


±Recent Forum Posts

Last 10 Forum Messages

Hardwood cleaning: Swiffer vs Bona??
Last post by slackin in General Chat on Jan 20, 2023 at 00:25:20

How is everyone doing?
Last post by Nizel in General Chat on Jan 09, 2023 at 21:01:30

Incredible...
Last post by SachkaHDDEV in Recruitment on Jul 02, 2021 at 17:51:09

Balaur the cheater that never was banned
Last post by Chuck in General Chat on Apr 28, 2021 at 05:12:45

Manager game - Help with data
Last post by juliediane in General Chat on Apr 12, 2021 at 02:39:20

Nations Cup XXIV - Penalties
Last post by Rocket- in Nationscup XXIV on Feb 09, 2021 at 15:27:21

Roster Team Venezuela NC
Last post by bzegs in Nationscup XXIV on Feb 01, 2021 at 16:50:54

Captain Applications
Last post by Rocket- in Nationscup XXIV on Jan 15, 2021 at 13:11:53

PLEASE READ - Captain Votes
Last post by Rocket- in Nationscup XXIV on Jan 15, 2021 at 12:54:07

They said WHAT?
Last post by juliediane in General Chat on Jan 02, 2021 at 08:56:57