Skip to content

Commit

Permalink
Fixed error happening between 2 consecutive matches
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaymankar committed Apr 6, 2012
1 parent 000da5c commit 089ec7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions getMatchName.rb
Expand Up @@ -13,6 +13,9 @@ def getMatchName()
#print i.to_s + sch["schedule"][i]["matchState"]+"\n"
break if i >= MAX_MATCHES
end
if(sch["schedule"][i]["matchState"].eql? "L")
i-=1;
end
#print sch["schedule"][i]["matchState"]+"\n"
if sch["schedule"][i]["matchState"].eql? "U"
return sch["schedule"][i-1]["matchId"]["name"]
Expand Down

0 comments on commit 089ec7f

Please sign in to comment.