aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/models')
-rw-r--r--pyaggr3g470r/models/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/models/__init__.py b/pyaggr3g470r/models/__init__.py
index 906d1f8c..f01eb3a3 100644
--- a/pyaggr3g470r/models/__init__.py
+++ b/pyaggr3g470r/models/__init__.py
@@ -30,11 +30,12 @@ import re
import json
import random, hashlib
from datetime import datetime
+from flask import g
from sqlalchemy import asc, desc
from werkzeug import generate_password_hash, check_password_hash
from flask.ext.login import UserMixin
-from pyaggr3g470r import db
+db = g.db
class User(db.Model, UserMixin):
bgstack15