+ public = request.args.get('public')
+ print(public)
+ if request.method == "POST":
+ student = coldcall_student(course)
+ if not student:
+ abort(404)
+ else:
+ student = ''
+ return render_template('cold_caller.html', student=student, public=public)
+
+def coldcall_student(course):
+ if course not in ["com_304","com_411","com_674", "amap"]:
+ return None