mirror of https://github.com/JohnHammond/CTFd.git
Rebase 2.4.0-dev
parent
0bd6c0d958
commit
b3b654bf03
|
@ -42,6 +42,7 @@ from CTFd.utils.security.csrf import generate_nonce
|
|||
from CTFd.utils.user import (
|
||||
authed,
|
||||
get_current_user_attrs,
|
||||
get_current_user_ips,
|
||||
get_current_team_attrs,
|
||||
get_ip,
|
||||
is_admin,
|
||||
|
@ -201,7 +202,6 @@ def init_request_processors(app):
|
|||
logout_user()
|
||||
clear_user_ips(user_id=session["id"])
|
||||
|
||||
db.session.close()
|
||||
|
||||
@app.before_request
|
||||
def banned():
|
||||
|
|
|
@ -7,7 +7,7 @@ from flask import request, session
|
|||
from CTFd.cache import cache
|
||||
from CTFd.constants.users import UserAttrs
|
||||
from CTFd.constants.teams import TeamAttrs
|
||||
from CTFd.models import Fails, Users, db, Teams
|
||||
from CTFd.models import Fails, Users, db, Teams, Tracking
|
||||
from CTFd.utils import get_config
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue