Skip to content

Commit 5169fee

Browse files
dependabot[bot]mxmeinhold
authored andcommitted
Update onesignal-sdk requirement from ~=1.0.0 to ~=2.0.0
Updates the requirements on [onesignal-sdk](https://github.com/zeyneloz/onesignal_sdk) to permit the latest version. - [Release notes](https://github.com/zeyneloz/onesignal_sdk/releases) - [Changelog](https://github.com/zeyneloz/onesignal_sdk/blob/master/CHANGES.rst) - [Commits](zeyneloz/onesignal_sdk@v1.0.0...v2.0.0) Signed-off-by: dependabot[bot] <[email protected]>
1 parent 94642cd commit 5169fee

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packet/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88

99
import csh_ldap
10-
import onesignal
10+
import onesignal_sdk.client as onesignal
1111
from flask import Flask
1212
from flask_gzip import Gzip
1313
from flask_migrate import Migrate
@@ -57,7 +57,7 @@
5757
app.config['ONESIGNAL_CSH_APP_ID']:
5858
csh_onesignal_client = onesignal.Client(
5959
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'],
6161
app_id=app.config['ONESIGNAL_CSH_APP_ID']
6262
)
6363
app.logger.info('CSH Onesignal configured and notifications enabled')
@@ -68,7 +68,7 @@
6868
app.config['ONESIGNAL_INTRO_APP_ID']:
6969
intro_onesignal_client = onesignal.Client(
7070
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'],
7272
app_id=app.config['ONESIGNAL_INTRO_APP_ID']
7373
)
7474
app.logger.info('Intro Onesignal configured and notifications enabled')

packet/notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import onesignal
1+
import onesignal_sdk.client as onesignal
22

33
from packet import app, intro_onesignal_client, csh_onesignal_client
44
from packet.models import NotificationSubscription

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Flask-Migrate~=2.5.3
77
Flask-pyoidc~=3.7.0
88
flask_sqlalchemy~=2.4.4
99
gunicorn~=20.0.4
10-
onesignal-sdk~=1.0.0
10+
onesignal-sdk~=2.0.0
1111
psycopg2-binary~=2.8.6
1212
pylint~=2.7.2
1313
pylint-quotes~=0.2.1

0 commit comments

Comments
 (0)