Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.
Open
Changes from 1 commit
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
5 changes: 2 additions & 3 deletions onesignalclient/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,13 @@ def get_payload_for_request(self):
# Should change when template/content_available support be done
'contents': self.contents
}

# Mode related settings
if self.mode == self.DEVICES_MODE:
payload.update({'include_player_ids': self.include_player_ids})

# Common parameters
if len(self.data) > 0:
payload.update({'data': self.data})
payload.update({'data': self.data})
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the verification? I didn't understand 🤔


if len(self.headings) > 0:
payload.update({'headings': self.headings})
Expand Down