Skip to content

Commit

Permalink
Config setting removed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Jan 26, 2016
1 parent bff440a commit 95d3112
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions libcrowds_statistics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 95d3112

Please sign in to comment.