diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-03-27 01:44:27 +0000 |
---|---|---|
committer | Max Meinhold <mxmeinhold@gmail.com> | 2021-03-27 00:14:29 -0400 |
commit | 5169fee2412f09ceb09643644ab003169295ec80 (patch) | |
tree | 55b6de9fed2cb882e3cf4816b07c3b5014b69971 | |
parent | 94642cdacb3900c22258be7fa83a857a9a2789d8 (diff) |
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](https://github.com/zeyneloz/onesignal_sdk/compare/v1.0.0...v2.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
-rw-r--r-- | packet/__init__.py | 6 | ||||
-rw-r--r-- | packet/notifications.py | 2 | ||||
-rw-r--r-- | requirements.txt | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/packet/__init__.py b/packet/__init__.py index c7fed4b..ac6abd0 100644 --- a/packet/__init__.py +++ b/packet/__init__.py @@ -7,7 +7,7 @@ import logging import os import csh_ldap -import onesignal +import onesignal_sdk.client as onesignal from flask import Flask from flask_gzip import Gzip from flask_migrate import Migrate @@ -57,7 +57,7 @@ if app.config['ONESIGNAL_USER_AUTH_KEY'] and \ app.config['ONESIGNAL_CSH_APP_ID']: csh_onesignal_client = onesignal.Client( user_auth_key=app.config['ONESIGNAL_USER_AUTH_KEY'], - app_auth_key=app.config['ONESIGNAL_CSH_APP_AUTH_KEY'], + rest_api_key=app.config['ONESIGNAL_CSH_APP_AUTH_KEY'], app_id=app.config['ONESIGNAL_CSH_APP_ID'] ) app.logger.info('CSH Onesignal configured and notifications enabled') @@ -68,7 +68,7 @@ if app.config['ONESIGNAL_USER_AUTH_KEY'] and \ app.config['ONESIGNAL_INTRO_APP_ID']: intro_onesignal_client = onesignal.Client( user_auth_key=app.config['ONESIGNAL_USER_AUTH_KEY'], - app_auth_key=app.config['ONESIGNAL_INTRO_APP_AUTH_KEY'], + rest_api_key=app.config['ONESIGNAL_INTRO_APP_AUTH_KEY'], app_id=app.config['ONESIGNAL_INTRO_APP_ID'] ) app.logger.info('Intro Onesignal configured and notifications enabled') diff --git a/packet/notifications.py b/packet/notifications.py index e718265..69e1ab6 100644 --- a/packet/notifications.py +++ b/packet/notifications.py @@ -1,4 +1,4 @@ -import onesignal +import onesignal_sdk.client as onesignal from packet import app, intro_onesignal_client, csh_onesignal_client from packet.models import NotificationSubscription diff --git a/requirements.txt b/requirements.txt index d9f198d..94be851 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ Flask-Migrate~=2.5.3 Flask-pyoidc~=3.7.0 flask_sqlalchemy~=2.4.4 gunicorn~=20.0.4 -onesignal-sdk~=1.0.0 +onesignal-sdk~=2.0.0 psycopg2-binary~=2.8.6 pylint~=2.7.2 pylint-quotes~=0.2.1 |