def gather_data(self): #TODO: Alias MIS_Database_Functions, these lines are way to long prev_event_aggregates = MIS_Database_Functions.get_event_aggregates( MIS_Database_Functions.get_most_recent_event_id()) # Event that just happened curr_event_aggregates = MIS_Database_Functions.get_event_aggregates( MIS_Database_Functions.get_most_recent_event_id()-1) # Event before that prev_event_classifications = MIS_Database_Functions.get_event_classification_aggregates( MIS_Database_Functions.get_most_recent_event_id()) curr_event_classifications = MIS_Database_Functions.get_event_classification_aggregates( MIS_Database_Functions.get_most_recent_event_id()-1) self.target_major = MIS_Database_Functions.select_config_info('target_major') for aggregate in prev_event_aggregates: self.prev_event_data[aggregate] = prev_event_aggregates[aggregate] for aggregate in curr_event_aggregates: self.curr_event_data[aggregate] = curr_event_aggregates[aggregate] for classification in prev_event_classifications: self.prev_event_data['classification'][classification] = prev_event_classifications[classification] for classification in curr_event_classifications: self.curr_event_data['classification'][classification] = curr_event_classifications[classification] return True