Skip to content

Commit 6cdf8be

Browse files
committed
Send 100% notification
1 parent fbb5482 commit 6cdf8be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packet/routes/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from packet.mail import send_report_mail
99
from packet.utils import before_request, packet_auth, notify_slack
1010
from packet.models import Packet, MiscSignature, NotificationSubscription
11-
from packet.notifications import packet_signed_notification
11+
from packet.notifications import packet_signed_notification, packet_100_percent_notification
1212

1313

1414
@app.route("/api/v1/sign/<packet_id>/", methods=["POST"])
@@ -70,6 +70,7 @@ def report(info):
7070
def commit_sig(packet, was_100):
7171
db.session.commit()
7272
if not was_100 and packet.is_100():
73+
packet_100_percent_notification(packet)
7374
notify_slack(packet.freshman.name)
7475

7576
return "Success: Signed Packet: " + packet.freshman_username

0 commit comments

Comments
 (0)