File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1616def packet_signed_notification (packet , signer ):
1717 subscriptions = NotificationSubscription .query .filter_by (freshman_username = packet .freshman_username )
1818 if subscriptions :
19- tokens = list (filter (lambda subscription : subscription .token , subscriptions ))
19+ tokens = list (map (lambda subscription : subscription .token , subscriptions ))
2020
2121 notification = onesignal .Notification (post_body = post_body )
2222 notification .post_body ["content" ]["en" ] = signer + ' signed your packet! Congrats or I\' m Sorry'
@@ -32,7 +32,7 @@ def packet_signed_notification(packet, signer):
3232def packet_100_percent_notification (packet ):
3333 subscriptions = NotificationSubscription .query .all ()
3434 if subscriptions :
35- tokens = list (filter (lambda subscription : subscription .token , subscriptions ))
35+ tokens = list (map (lambda subscription : subscription .token , subscriptions ))
3636
3737 notification = onesignal .Notification (post_body = post_body )
3838 notification .post_body ["content" ]["en" ] = packet .freshman .name + ' got 💯 on packet!'
You can’t perform that action at this time.
0 commit comments