File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 10
10
from flask_sqlalchemy import SQLAlchemy
11
11
from raven .contrib .flask import Sentry
12
12
13
+ import sentry_sdk
14
+ from sentry_sdk .integrations .flask import FlaskIntegration
15
+ from sentry_sdk .integrations .sqlalchemy import SqlalchemyIntegration
16
+
13
17
app = Flask (__name__ )
14
18
gzip = Gzip (app )
15
19
24
28
25
29
db = SQLAlchemy (app )
26
30
migrate = Migrate (app , db )
31
+
32
+ # Sentry setup
27
33
sentry = Sentry (app )
34
+ sentry_sdk .init (
35
+ dsn = app .config ['SENTRY_DSN' ],
36
+ integrations = [FlaskIntegration (), SqlalchemyIntegration ()]
37
+ )
28
38
29
39
ldap = CSHLDAP (app .config ['LDAP_BIND_DN' ],
30
40
app .config ['LDAP_BIND_PW' ],
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ <h3 class="panel-title">Conditionals</h3>
195
195
{% endif %}
196
196
197
197
198
- {% if is_eboard %}
199
198
< div class ="panel panel-default ">
200
199
< div class ="panel-heading ">
201
200
< h3 class ="panel-title "> Member Statistics</ h3 >
@@ -220,7 +219,6 @@ <h3 class="panel-title">Member Statistics</h3>
220
219
</ div >
221
220
</ div >
222
221
</ div >
223
- {% endif %}
224
222
225
223
226
224
{% if major_projects_count == 0 and not active%}
Original file line number Diff line number Diff line change 26
26
27
27
# Sentry config
28
28
# Do not set the DSN for local development
29
+ SENTRY_DSN = env .get ("CONDITIONAL_SENTRY_DSN" , "" )
29
30
SENTRY_CONFIG = {
30
31
'dsn' : env .get ("CONDITIONAL_SENTRY_DSN" , "" ),
31
32
'release' : VERSION ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " conditional" ,
3
- "version" : " 1.10.0 " ,
3
+ "version" : " 1.10.1 " ,
4
4
"description" : " CSH Re-evaluation (MEGA_EVALS RE:RE:LOADED)" ,
5
5
"license" : " MIT" ,
6
6
"homepage" : " http://csh.rit.edu/" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ pylint~=2.3.1
23
23
python-dateutil ~= 2.6.1
24
24
python-editor ~= 1.0.3
25
25
raven ~= 6.6.0
26
+ sentry-sdk [flask ]~= 0.13.1
26
27
six ~= 1.11.0
27
28
SQLAlchemy ~= 1.3.7
28
29
structlog ~= 18.1.0
You can’t perform that action at this time.
0 commit comments