2.0.0-rc1 : Profile and achievements update.
This commit is contained in:
+16
-1
@@ -13,9 +13,22 @@ def create_app(config_object=Config):
|
||||
app.config.from_object(config_object)
|
||||
|
||||
initialize_web_db()
|
||||
from web.services.roster_version_service import RosterVersionService
|
||||
RosterVersionService.ensure_initial_version()
|
||||
app.teardown_appcontext(close_dbs)
|
||||
|
||||
from web.routes import main, matches, players, teams, tactics, admin, wiki, opponents
|
||||
from web.routes import (
|
||||
admin,
|
||||
awards,
|
||||
main,
|
||||
matches,
|
||||
opponents,
|
||||
players,
|
||||
reports,
|
||||
tactics,
|
||||
teams,
|
||||
wiki,
|
||||
)
|
||||
app.register_blueprint(main.bp)
|
||||
app.register_blueprint(matches.bp)
|
||||
app.register_blueprint(players.bp)
|
||||
@@ -24,6 +37,8 @@ def create_app(config_object=Config):
|
||||
app.register_blueprint(admin.bp)
|
||||
app.register_blueprint(wiki.bp)
|
||||
app.register_blueprint(opponents.bp)
|
||||
app.register_blueprint(reports.bp)
|
||||
app.register_blueprint(awards.bp)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user