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_HOST: mariadb-mine
|
||||||
MINE_DB_USER: mine
|
MINE_DB_USER: mine
|
||||||
MINE_DB_PASSWORD: 123abc
|
MINE_DB_PASSWORD: 123abc
|
||||||
|
MINE_LOG_FILE: /tmp/mine.log
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb-mine
|
- mariadb-mine
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -50,7 +50,7 @@ def generate_origin_block():
|
|||||||
@mine.get('/')
|
@mine.get('/')
|
||||||
def index_get():
|
def index_get():
|
||||||
try:
|
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:
|
except Exception as e:
|
||||||
return flask.jsonify(
|
return flask.jsonify(
|
||||||
{'Error': str(e)}
|
{'Error': str(e)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user