def get_slots_to_interviewers(rc_id): slots_to_interviewers = {} interviewers = interviewers_db.get_interviewers(rc_id) for interviewer in interviewers: for slot in interviewer.availabilities: if slot not in slots_to_interviewers: slots_to_interviewers[slot] = [] slots_to_interviewers[slot].append(interviewer.name) return slots_to_interviewers
def get_rc_page(rc_id): interviewers = interviewers_db.get_interviewers(rc_id) interviewees = interviewees_db.get_interviewees(rc_id) return render_template('recruiting_cycle.html', interviewers=interviewers, interviewees=interviewees, rc_id=rc_id)