@@ -28,9 +28,9 @@ def packet_signed_notification(packet, signer):
28
28
subscriptions = NotificationSubscription .query .filter_by (freshman_username = packet .freshman_username )
29
29
if subscriptions :
30
30
notification_body = post_body
31
- notification_body ["contents" ]["en" ] = signer + ' signed your packet! Congrats or I\ ' m Sorry'
32
- notification_body ["headings" ]["en" ] = ' New Packet Signature!'
33
- notification_body ["chrome_web_icon" ] = ' https://profiles.csh.rit.edu/image/' + signer
31
+ notification_body ["contents" ]["en" ] = signer + " signed your packet! Congrats or I'm Sorry"
32
+ notification_body ["headings" ]["en" ] = " New Packet Signature!"
33
+ notification_body ["chrome_web_icon" ] = " https://profiles.csh.rit.edu/image/" + signer
34
34
notification_body ["url" ] = app .config ["PROTOCOL" ] + app .config ["PACKET_INTRO" ]
35
35
36
36
send_notification (notification_body , subscriptions , intro_onesignal_client )
@@ -41,10 +41,10 @@ def packet_100_percent_notification(packet):
41
41
intro_subscriptions = NotificationSubscription .query .filter (NotificationSubscription .freshman_username .isnot (None ))
42
42
if member_subscriptions or intro_subscriptions :
43
43
notification_body = post_body
44
- notification_body ["contents" ]["en" ] = packet .freshman .name + ' got 💯 on packet!'
45
- notification_body ["headings" ]["en" ] = ' New 100% on Packet!'
44
+ notification_body ["contents" ]["en" ] = packet .freshman .name + " got 💯 on packet!"
45
+ notification_body ["headings" ]["en" ] = " New 100% on Packet!"
46
46
# TODO: Issue #156
47
- notification_body ["chrome_web_icon" ] = ' https://profiles.csh.rit.edu/image/' + packet .freshman_username
47
+ notification_body ["chrome_web_icon" ] = " https://profiles.csh.rit.edu/image/" + packet .freshman_username
48
48
49
49
send_notification (notification_body , member_subscriptions , csh_onesignal_client )
50
50
send_notification (notification_body , intro_subscriptions , intro_onesignal_client )
@@ -54,8 +54,8 @@ def packet_starting_notification(packet):
54
54
subscriptions = NotificationSubscription .query .filter_by (freshman_username = packet .freshman_username )
55
55
if subscriptions :
56
56
notification_body = post_body
57
- notification_body ["contents" ]["en" ] = ' Log into your packet, and get started meeting people!'
58
- notification_body ["headings" ]["en" ] = ' Your packet has begun!'
57
+ notification_body ["contents" ]["en" ] = " Log into your packet, and get started meeting people!"
58
+ notification_body ["headings" ]["en" ] = " Your packet has begun!"
59
59
notification_body ["url" ] = app .config ["PROTOCOL" ] + app .config ["PACKET_INTRO" ]
60
60
notification_body ["send_after" ] = packet .start .strftime ("%Y-%m-%d %H:%M:%S" )
61
61
@@ -66,8 +66,8 @@ def packets_starting_notification(start_date):
66
66
member_subscriptions = NotificationSubscription .query .filter (NotificationSubscription .member .isnot (None ))
67
67
if member_subscriptions :
68
68
notification_body = post_body
69
- notification_body ["contents" ]["en" ] = ' New packets have started, visit packet to see them!'
70
- notification_body ["headings" ]["en" ] = ' Packets Start Today!'
69
+ notification_body ["contents" ]["en" ] = " New packets have started, visit packet to see them!"
70
+ notification_body ["headings" ]["en" ] = " Packets Start Today!"
71
71
notification_body ["send_after" ] = start_date .strftime ("%Y-%m-%d %H:%M:%S" )
72
72
73
73
send_notification (notification_body , member_subscriptions , csh_onesignal_client )
0 commit comments