add capitals on each words in account labels
This commit is contained in:
parent
4e2275b225
commit
755de4c3f5
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class AccountsPage(BasePage):
|
||||||
if (first_td.attrib.get('class', '') == 'i g' or first_td.attrib.get('class', '') == 'p g') \
|
if (first_td.attrib.get('class', '') == 'i g' or first_td.attrib.get('class', '') == 'p g') \
|
||||||
and first_td.find('a') is not None:
|
and first_td.find('a') is not None:
|
||||||
account = Account()
|
account = Account()
|
||||||
account.label = u"%s"%first_td.find('a').text.strip().lstrip(' 0123456789').capitalize()
|
account.label = u"%s"%first_td.find('a').text.strip().lstrip(' 0123456789').title()
|
||||||
account._link_id = first_td.find('a').get('href', '')
|
account._link_id = first_td.find('a').get('href', '')
|
||||||
if account._link_id.startswith('POR_SyntheseLst'):
|
if account._link_id.startswith('POR_SyntheseLst'):
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue