changing string concatenation

This commit is contained in:
Andrew Davidson 2012-02-29 21:39:59 -08:00
parent f3783dc307
commit e1f1cf09ca

View file

@ -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':