Skip to content

Commit

Permalink
Cleaning things up. It's been a while.
Browse files Browse the repository at this point in the history
  • Loading branch information
artnez committed Jan 21, 2014
1 parent f5a13c2 commit c022063
Show file tree
Hide file tree
Showing 19 changed files with 312 additions and 224 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
etc/faceoff.yml
environment
1 change: 0 additions & 1 deletion environment

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
@@ -1,3 +1,4 @@
Flask==0.8.1
WTForms==0.6.3
trueskill==0.4.1
flake8==2.1.0
2 changes: 1 addition & 1 deletion src/faceoff/__init__.py
Expand Up @@ -16,4 +16,4 @@
fixtures.init_app(app)
tpl.init_app(app)

import faceoff.views
import faceoff.views # flake8: noqa
1 change: 1 addition & 0 deletions src/faceoff/cache.py
Expand Up @@ -5,6 +5,7 @@

from werkzeug.contrib.cache import NullCache, MemcachedCache


def init_app(app):
"""
Configures the provided app cache services.
Expand Down
5 changes: 3 additions & 2 deletions src/faceoff/config.py
Expand Up @@ -9,10 +9,10 @@

# flask
LOGGER_NAME = 'faceoff'
DEBUG = os.getenv('FACEOFF_DEBUG') == '1'
DEBUG = os.getenv('FACEOFF_DEBUG') == '1'
SERVER_NAME = os.getenv('FACEOFF_HOST') + ':' + os.getenv('FACEOFF_PORT')
SECRET_KEY = '89a1100b5a62059021260a75738e6e61' if DEBUG else os.urandom(24)
PERMANENT_SESSION_LIFETIME = 60*60*24*365
PERMANENT_SESSION_LIFETIME = 60 * 60 * 24 * 365
SESSION_COOKIE_DOMAIN = '' if DEBUG else None

# logging
Expand All @@ -28,6 +28,7 @@
DB_PATH = os.getenv('FACEOFF_DB_PATH')
DB_FIXTURES = os.getenv('FACEOFF_DB_FIXTURES')


def init_app(app):
app.config.from_object(__name__)
app.config.from_envvar('FACEOFF_CONFIG', silent=True)
Expand Down

0 comments on commit c022063

Please sign in to comment.