Skip to content

Commit

Permalink
Merge pull request #289 from mxmeinhold/revert-onesignal-2.0
Browse files Browse the repository at this point in the history
Revert "Update onesignal-sdk requirement from ~=1.0.0 to ~=2.0.0"
  • Loading branch information
galenguyer authored Aug 23, 2021
2 parents 3648b10 + 9df4bf9 commit f61cd2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit f61cd2b

Please sign in to comment.