This commit is contained in:
Eric Meehan 2025-10-13 12:47:38 -04:00
parent ea639eeac1
commit f1b3eab3a3
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ services:
MINE_DB_HOST: mariadb-mine
MINE_DB_USER: mine
MINE_DB_PASSWORD: 123abc
MINE_LOG_FILE: /tmp/mine.log
depends_on:
- mariadb-mine
ports:

View File

@ -50,7 +50,7 @@ def generate_origin_block():
@mine.get('/')
def index_get():
try:
return jsonify([each.as_dict() for each in db.get_blocks()])
return flask.jsonify([each.as_dict() for each in db.get_blocks()])
except Exception as e:
return flask.jsonify(
{'Error': str(e)}