(self)
return q.order_by("_next_update")
Sort podcasts by next scheduled update
Sort podcasts by next scheduled update
Sort podcasts by next scheduled update
def order_by_next_update(self):
        """Sort podcasts by next scheduled update"""
        NEXTUPDATE = (
            "last_update + (update_interval * "
            "update_interval_factor || ' hours')::INTERVAL"
        )
        q = self.extra(select={"_next_update": NEXTUPDATE})
        return q.order_by("_next_update")
def order_by_next_update ( self ) : NEXTUPDATE = ( "last_update + (update_interval * " "update_interval_factor || ' hours')::INTERVAL" ) q = self . extra ( select = { "_next_update" : NEXTUPDATE } ) return q . order_by ( "_next_update" )