Changeset - 9c17258cae72
[Not reviewed]
default
0 1 0
Dennis Fink - 10 years ago 2015-07-08 22:20:22

fixed tabs
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/__init__.py
Show inline comments
 
@@ -4,17 +4,19 @@ import os.path
 
import base64
 

	
 
from flask import Flask
 

	
 
config_file = os.path.abspath('config.json')
 

	
 

	
 
def create_app():
 
	app = Flask(__name__)
 

	
 
	_default_secret_key = base64.b64encode(os.urandom(32)).decode('utf-8')
 
	app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', _default_secret_key)
 
    app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY',
 
                                              _default_secret_key)
 

	
 
	if not hasattr(app.config, 'from_json'):
 
		def from_json(file, silent=True):
 
			try:
 
				with open(file, encoding='utf-8') as json_file:
 
					obj = json.load(json_file)
0 comments (0 inline, 0 general)