Skip to content

Commit

Permalink
get extra data from kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
MBusanelli committed Jan 9, 2017
1 parent a818325 commit bd590fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pushservices/gcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def process(self, **kwargs):
collapse_key = gcmparam.get('collapse_key', None)
ttl = gcmparam.get('ttl', None)
alert = kwargs.get('alert', None)
data = gcmparam.get('data', {})
data = kwargs.get('extra', {})
if 'message' not in data:
data['message'] = kwargs.get('alert', '')
return self.send(kwargs['token'], data=data, collapse_key=collapse_key, ttl=ttl)
Expand Down

0 comments on commit bd590fb

Please sign in to comment.