Compare commits
No commits in common. "5c10096a5f6fd4ad16a8946151169d7d3a9e9db9" and "059de2914d9b2ff498c3deb39ee2da5017adf76b" have entirely different histories.
5c10096a5f
...
059de2914d
1 changed files with 1 additions and 4 deletions
|
|
@ -75,9 +75,7 @@ def get_notifications_client():
|
||||||
return client
|
return client
|
||||||
|
|
||||||
|
|
||||||
def notifications_push_user(user_uuid, title, message, priority=5, extras=None, click_url=None):
|
def notifications_push_user(user_uuid, title, message, priority=5, extras=None):
|
||||||
# click_url is optional — most notifications aren't clickable. When set,
|
|
||||||
# the notifications service embeds it as the tap destination.
|
|
||||||
class Tmp():
|
class Tmp():
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return {
|
return {
|
||||||
|
|
@ -85,7 +83,6 @@ def notifications_push_user(user_uuid, title, message, priority=5, extras=None,
|
||||||
'message': message,
|
'message': message,
|
||||||
'priority': priority,
|
'priority': priority,
|
||||||
'extras': extras,
|
'extras': extras,
|
||||||
'click_url': click_url,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
push_data = Tmp()
|
push_data = Tmp()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue