From 95d31125d519ab2c2ccb98474d54347ed9ef2006 Mon Sep 17 00:00:00 2001 From: alexandermendes Date: Tue, 26 Jan 2016 16:57:19 +0000 Subject: [PATCH] Config setting removed --- libcrowds_statistics/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libcrowds_statistics/__init__.py b/libcrowds_statistics/__init__.py index eb0b011..f6e60d2 100644 --- a/libcrowds_statistics/__init__.py +++ b/libcrowds_statistics/__init__.py @@ -9,7 +9,6 @@ import os from flask import current_app as app from flask.ext.plugins import Plugin -import default_settings __plugin__ = "LibCrowdsStatistics" __version__ = "0.1.0" @@ -20,22 +19,10 @@ class LibCrowdsStatistics(Plugin): def setup(self): """Setup the plugin.""" - self.load_config() self.setup_blueprint() from . import event_listeners - def load_config(self): - """Configure the plugin.""" - app.config.from_envvar('STATISTICS_SETTINGS', silent=True) - if not os.environ.get('STATISTICS_SETTINGS'): # pragma: no cover - settings = [key for key in dir(default_settings) if key.isupper()] - - for s in settings: - if not app.config.get(s): - app.config[s] = getattr(default_settings, s) - - def setup_blueprint(self): """Setup blueprint.""" from .blueprint import StatisticsBlueprint