aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-26 07:47:25 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-26 07:47:25 +0200
commitb049532adfda00de1ab56e9a0869bfed050f632c (patch)
tree8f4f143a601ca43fa890d5c8e0a64a5460ed1907 /src/bootstrap.py
parentUpdated about page. (diff)
downloadnewspipe-b049532adfda00de1ab56e9a0869bfed050f632c.tar.gz
newspipe-b049532adfda00de1ab56e9a0869bfed050f632c.tar.bz2
newspipe-b049532adfda00de1ab56e9a0869bfed050f632c.zip
Minor improvements.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py
index 146d9176..8aaba976 100644
--- a/src/bootstrap.py
+++ b/src/bootstrap.py
@@ -9,6 +9,7 @@ import logging
import flask_restless
from urllib.parse import urlsplit
+
def set_logging(log_path, log_level=logging.INFO,
log_format='%(asctime)s %(levelname)s %(message)s'):
formater = logging.Formatter(log_format)
@@ -55,6 +56,7 @@ db = SQLAlchemy(application)
# Create the Flask-Restless API manager.
manager = flask_restless.APIManager(application, flask_sqlalchemy_db=db)
+
def populate_g():
from flask import g
g.db = db
bgstack15