def _process(self): direction = request.form['direction'] with track_time_changes(): swap_timetable_entry(self.entry, direction, session_=self.session) return jsonify_data(flash=False, update=serialize_entry_update( self.entry, session_=self.session))
def _process(self): direction = request.form['direction'] with track_time_changes(): swap_timetable_entry(self.entry, direction, session_=self.session) return jsonify_data(flash=False, update=serialize_entry_update(self.entry, session_=self.session))