Bump to version 0.2.0

master
esensar 2018-10-08 22:09:01 +02:00
parent 4085236c93
commit 8e8c87b4de
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ app.config.from_pyfile('config.py', silent=True)
db = SQLAlchemy(app)
bcrypt = Bcrypt(app)
swagger = Swagger(app, template_file='swagger/template.yaml')
swagger.template['info']['version'] = app.config['APP_VERSION']
CORS(app)
celery = celery_configurator.make_celery(app)

View File

@ -2,6 +2,7 @@ import os
# App configuration
DEBUG = os.environ['DEBUG']
APP_VERSION = '0.2.0'
# Define the application directory
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
@ -39,7 +40,7 @@ MQTT_REFRESH_TIME = 1.0 # refresh time in seconds
CELERY_BROKER_URL = os.environ['REDIS_URL']
CELERY_RESULT_BACKEND = os.environ['REDIS_URL']
# Flassger config
# Flasgger config
SWAGGER = {
'uiversion': 3
}