Skip to content

Revert "Update onesignal-sdk requirement from ~=1.0.0 to ~=2.0.0" #289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os

import csh_ldap
import onesignal_sdk.client as onesignal
import onesignal
from flask import Flask
from flask_gzip import Gzip
from flask_migrate import Migrate
Expand Down Expand Up @@ -57,7 +57,7 @@
app.config['ONESIGNAL_CSH_APP_ID']:
csh_onesignal_client = onesignal.Client(
user_auth_key=app.config['ONESIGNAL_USER_AUTH_KEY'],
rest_api_key=app.config['ONESIGNAL_CSH_APP_AUTH_KEY'],
app_auth_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')
Expand All @@ -68,7 +68,7 @@
app.config['ONESIGNAL_INTRO_APP_ID']:
intro_onesignal_client = onesignal.Client(
user_auth_key=app.config['ONESIGNAL_USER_AUTH_KEY'],
rest_api_key=app.config['ONESIGNAL_INTRO_APP_AUTH_KEY'],
app_auth_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')
Expand Down
2 changes: 1 addition & 1 deletion packet/notifications.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from typing import Any, Callable, TypeVar, cast

import onesignal_sdk.client as onesignal
import onesignal

from packet import app, intro_onesignal_client, csh_onesignal_client
from packet.models import NotificationSubscription, Packet
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ddtrace
flask_sqlalchemy~=2.5.1
gunicorn~=20.0.4
mypy
onesignal-sdk~=2.0.0
onesignal-sdk~=1.0.0
psycopg2-binary~=2.8.6
pylint-quotes~=0.2.1
pylint~=2.7.2
Expand Down