127.0.0.1 - - [05/May/2022 20:42:28] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [05/May/2022 20:42:28] "GET /static/css/base.css HTTP/1.1" 304 -
127.0.0.1 - - [05/May/2022 20:42:28] "GET /static/css/index.css HTTP/1.1" 304 -
127.0.0.1 - - [05/May/2022 20:42:28] "GET /static/js/index.js HTTP/1.1" 304 -
<class 'str'>
1
127.0.0.1 - - [05/May/2022 20:42:44] "GET /1 HTTP/1.1" 200 -
<class 'str'>
favicon.ico
127.0.0.1 - - [05/May/2022 20:42:44] "GET /favicon.ico HTTP/1.1" 500 -
Traceback (most recent call last):
@views.route('/<height>', methods=['GET'])
def block(height):
from main import blockchain
print(type(height))
print(height)
return render_template("block.html", block = blockchain.chain[int(height) - 1], blockchain=blockchain)
<class 'str'>
1