[biplan] fix bugs
This commit is contained in:
parent
0ff2abb2fd
commit
51ddda4bf9
4 changed files with 19 additions and 6 deletions
|
|
@ -85,7 +85,8 @@ class ProgramPage(HTMLPage):
|
|||
item_xpath = '//div[@class="ligne"]'
|
||||
|
||||
class item(ItemElement):
|
||||
klass = BiplanCalendarEventConcert if Env('is_concert') else BiplanCalendarEventTheatre
|
||||
def klass(self):
|
||||
return BiplanCalendarEventConcert() if self.env['is_concert'] else BiplanCalendarEventTheatre()
|
||||
|
||||
def condition(self):
|
||||
return (self.el.xpath('./div'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue