Permalink
Browse files

Fix xml parsing to get all elements

  • Loading branch information...
1 parent 818e86f commit 1657e5523d9c1633cbc79aa2473fb231265b3460 @fevrisn committed Mar 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bet365.py
View
2 bet365.py
@@ -57,7 +57,7 @@ def getBets(url=STANDARD_URL):
return x
def standardize(e):
- matches = [ev for ev in e.find('EventGroup').findall('Event') if ' v ' in ev.attrib['Name']]
+ matches = [ev for ev in e.findall('.//EventGroup/Event') if ' v ' in ev.attrib['Name']]
#print '%d matches' % len(matches)
rets = {}
mids = {}

0 comments on commit 1657e55

Please sign in to comment.