changing string concatenation
This commit is contained in:
parent
f3783dc307
commit
e1f1cf09ca
1 changed files with 6 additions and 3 deletions
|
@ -104,9 +104,12 @@ class index:
|
|||
|
||||
selected = get_pair_from_url(i.base_url)
|
||||
|
||||
body = '<h1>'+i.base_url+'</h1><p>'+selected[0].username+', '+selected[0].password+'</p>'
|
||||
body = ['<h1>'+i.base_url+'</h1>','']
|
||||
|
||||
return render.page('Created', body)
|
||||
for pair in selected:
|
||||
body.append('('+pair.username+', '+pair.password+')')
|
||||
|
||||
return render.page('Created', ''.join(body))
|
||||
|
||||
|
||||
if method == 'generate':
|
||||
|
|
Reference in a new issue