def add_live_student(live_lect_id): authUser = API.get_authentication() if not authUser: return render_template('authentication/login.html', error='You are not logged in') s1 = API.add_student_to_live_lecture(live_lect_id) s2 = API.update_gauge_pace_and_depth(live_lect_id, authUser.id, 0, 0) ret = s1 and s2 return json.dumps(ret)
def join_lecture(live_lecture_id): return json.dumps(API.add_student_to_live_lecture(live_lecture_id))