Pep8 cleaning
This commit is contained in:
parent
3daf7af5a9
commit
8165a91ff3
3 changed files with 25 additions and 14 deletions
|
|
@ -34,17 +34,20 @@ class SachsenBrowser(BaseBrowser):
|
|||
'.*hwz/MP/.*': HistoryPage
|
||||
}
|
||||
|
||||
homepage = '/de/wu/umwelt/lfug/lfug-internet/hwz/inhalt_re.html'
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
BaseBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def home(self):
|
||||
self.location('/de/wu/umwelt/lfug/lfug-internet/hwz/inhalt_re.html')
|
||||
self.location(self.homepage)
|
||||
|
||||
def get_rivers_list(self):
|
||||
if not self.is_on_page(ListPage):
|
||||
self.location('/de/wu/umwelt/lfug/lfug-internet/hwz/inhalt_re.html')
|
||||
self.location(self.homepage)
|
||||
return self.page.get_rivers_list()
|
||||
|
||||
def iter_history(self, sensor):
|
||||
self.location('/de/wu/umwelt/lfug/lfug-internet/hwz/MP/%d/index.html' % int(sensor.gaugeid))
|
||||
self.location('/de/wu/umwelt/lfug/lfug-internet/hwz/MP/%d/index.html'
|
||||
% int(sensor.gaugeid))
|
||||
return self.page.iter_history(sensor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue