Closes WikiDeck/wikideck#5
This commit is contained in:
parent
ea639eeac1
commit
f1b3eab3a3
@ -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:
|
||||
|
||||
@ -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)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user