def get_daily_meetings_details(self, query, day): # noqa: E501 """ Get daily meetings durations details """ start_date, day_after = CommonAnalytics.get_start_end_day_dates( self, day) # noqa daily_analytics = RoomAnalytics.meetings_duration_statistics( self, query, start_date, day_after) # noqa: E501 return daily_analytics
def get_least_used_room_day(self, query, day): """ Get event stats for all rooms in a specified day :params - day """ day_start, day_end = CommonAnalytics.get_start_end_day_dates(self, day) rooms_available = CommonAnalytics.get_calendar_id_name(self, query) return RoomAnalytics.get_least_used_rooms(self, rooms_available, day_start, day_end) # noqa: E501
def get_weekly_meetings_details(self, query, week_start, week_end): # noqa: E501 """ Get weekly meeting durations details """ week_start = CommonAnalytics.convert_date(self, week_start) week_end, day_after = CommonAnalytics.get_start_end_day_dates( self, week_end) # noqa: E501 weekly_analytics = RoomAnalytics.meetings_duration_statistics( self, query, week_start, day_after) # noqa: E501 return weekly_analytics