Skip to content

Commit 782eaac

Browse files
committed
change init order
1 parent 33ee1e5 commit 782eaac

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

selections/__init__.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@
3535

3636
migrate = Migrate(app, db)
3737

38-
# Load Applications Blueprint
39-
from selections.blueprints.application import *
40-
from selections.blueprints.teams import *
41-
42-
from selections.utils import before_request
43-
38+
#initialize S3
4439
import boto3
4540
session = boto3.Session(
4641
aws_access_key_id=app.config['AWS_ACCESS_KEY_ID'],
@@ -49,6 +44,13 @@
4944
s3 = session.resource('s3')
5045
bucket = s3.meta.client
5146

47+
# Load Applications Blueprint
48+
from selections.blueprints.application import *
49+
from selections.blueprints.teams import *
50+
51+
from selections.utils import before_request
52+
53+
5254
@app.route('/')
5355
@auth.oidc_auth
5456
@before_request

0 commit comments

Comments
 (0)