pull/13/head
Rui Carmo 2018-06-14 22:19:57 +01:00 zatwierdzone przez GitHub
rodzic 2565bcfc96
commit e0c37e1b17
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -6,12 +6,12 @@ from bottle import default_app, route, request, view, static_file, run
def default():
result = {}
table = ['<table class="u-full-width"><tbody>']
for k, v in sorted(os.environ.iteritems()):
for k, v in sorted(os.environ.items()):
table.append('<tr><th>%s</th><td>%s</td></tr>' % (k, v))
table.append('</tbody></table>')
result['sys_data'] = '\n'.join(table)
table = ['<table class="u-full-width"><tbody>']
for k, v in sorted(dict(request.environ).iteritems()):
for k, v in sorted(dict(request.environ).items()):
table.append('<tr><th>%s</th><td>%s</td></tr>' % (k, v))
table.append('</tbody></table>')
result['req_data'] = '\n'.join(table)