Commits

Jittat Fakcharoenphol committed 560bddb

fixed warning about global var

  • Participants
  • Parent commits be2d483

Comments (0)

Files changed (1)

committee/views/student_selection.py

                         args=[department_code,round_number]))
 
     accepted_count = len([s for s in selections if s.result==True])
+    global sendmail
     if sendmail:
         notice = "ได้ส่ง E-mailให้กับนิสิตทุกคนเรียบร้อยแล้ว"
-        global sendmail
         sendmail = False
         
     return render_to_response("committee/student_selection/approve.html",