File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
import os
8
8
9
9
import csh_ldap
10
- import onesignal
10
+ import onesignal_sdk . client as onesignal
11
11
from flask import Flask
12
12
from flask_gzip import Gzip
13
13
from flask_migrate import Migrate
57
57
app .config ['ONESIGNAL_CSH_APP_ID' ]:
58
58
csh_onesignal_client = onesignal .Client (
59
59
user_auth_key = app .config ['ONESIGNAL_USER_AUTH_KEY' ],
60
- app_auth_key = app .config ['ONESIGNAL_CSH_APP_AUTH_KEY' ],
60
+ rest_api_key = app .config ['ONESIGNAL_CSH_APP_AUTH_KEY' ],
61
61
app_id = app .config ['ONESIGNAL_CSH_APP_ID' ]
62
62
)
63
63
app .logger .info ('CSH Onesignal configured and notifications enabled' )
68
68
app .config ['ONESIGNAL_INTRO_APP_ID' ]:
69
69
intro_onesignal_client = onesignal .Client (
70
70
user_auth_key = app .config ['ONESIGNAL_USER_AUTH_KEY' ],
71
- app_auth_key = app .config ['ONESIGNAL_INTRO_APP_AUTH_KEY' ],
71
+ rest_api_key = app .config ['ONESIGNAL_INTRO_APP_AUTH_KEY' ],
72
72
app_id = app .config ['ONESIGNAL_INTRO_APP_ID' ]
73
73
)
74
74
app .logger .info ('Intro Onesignal configured and notifications enabled' )
Original file line number Diff line number Diff line change 1
- import onesignal
1
+ import onesignal_sdk . client as onesignal
2
2
3
3
from packet import app , intro_onesignal_client , csh_onesignal_client
4
4
from packet .models import NotificationSubscription
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Flask-Migrate~=2.5.3
7
7
Flask-pyoidc ~= 3.7.0
8
8
flask_sqlalchemy ~= 2.4.4
9
9
gunicorn ~= 20.0.4
10
- onesignal-sdk ~= 1 .0.0
10
+ onesignal-sdk ~= 2 .0.0
11
11
psycopg2-binary ~= 2.8.6
12
12
pylint ~= 2.7.2
13
13
pylint-quotes ~= 0.2.1
You can’t perform that action at this time.
0 commit comments