dashboard_app/widget_pool.py
def get_widgets_that_need_update(self):
        """
        Returns all widgets that need an update.

        This should be scheduled every minute via crontab.

        """
        result = []
        for widget_name, widget in self.get_widgets().items():
            if widget.should_update():
                result.append(widget)
        return result
def get_widgets_that_need_update(self):
        result = []
        for widget_name, widget in self.get_widgets().items():
            if widget.should_update():
                result.append(widget)
        return result
def get_widgets_that_need_update ( self ) : result = [ ] for widget_name , widget in self . get_widgets ( ) . items ( ) : if widget . should_update ( ) : result . append ( widget ) return result
Returns all widgets that need an update.

        This should be scheduled every minute via crontab.
Returns all widgets that need an update .