Being pedantic with commas, capitalisation and spacing.

This commit is contained in:
Luke Murphy 2018-11-17 21:03:59 +01:00
parent 4b2aa0afcb
commit d2a1134c57
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -7,14 +7,18 @@ from flask_socketio import SocketIO
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.dialects import registry from sqlalchemy.dialects import registry
registry.register("rqlite.pyrqlite", "sqlalchemy_rqlite.pyrqlite", "dialect") registry.register(
'rqlite.pyrqlite',
'sqlalchemy_rqlite.pyrqlite',
'dialect'
)
basedir = os.path.abspath(os.path.dirname(__file__)) BASEDIR = os.path.abspath(os.path.dirname(__file__))
UPLOAD_FOLDER = os.path.join(BASEDIR, 'uploads')
UPLOAD_FOLDER = os.path.join(basedir, 'uploads') UPLOAD_FOLDER_COVER = os.path.join(BASEDIR, 'cover')
UPLOAD_FOLDER_COVER = os.path.join(basedir, 'cover')
load_dotenv(find_dotenv()) load_dotenv(find_dotenv())
app = Flask(__name__) app = Flask(__name__)
app.config['SECRET_KEY'] = 'super secret key' app.config['SECRET_KEY'] = 'super secret key'