soonq/commands/commands.py
def list_item_info(self, truncate=True):
        """Returns a list of strings corresponding to the attributes of this QueueItem
        instance. If `truncate=True` (the default), the `task_id` and `published` time
        will be shortened.
        """
        info = []
        task_id_field = str(self.task_id)
        if truncate:
            task_id_field = task_id_field.split("-")[0] + "-"
            info.append(task_id_field)
        else:
            info.append(task_id_field)
        info.append(self.queue_name)
        info.append(str(self.position))
        published_field = str(self.published)
        if truncate:
            # Remove microseconds.
            info.append(published_field.split(".")[0])
        else:
            info.append(published_field)
        info.append(str(self.args))
        info.append(str(self.kwargs))
        return info
Returns a list of strings corresponding to the attributes of this QueueItem
        instance. If `truncate=True` (the default), the `task_id` and `published` time
        will be shortened.
        
Returns a list of strings corresponding to the attributes of this QueueItem
instance.
Returns a list of strings corresponding to the attributes of this QueueItem instance .
def list_item_info(self, truncate=True):
        info = []
        task_id_field = str(self.task_id)
        if truncate:
            task_id_field = task_id_field.split("-")[0] + "-"
            info.append(task_id_field)
        else:
            info.append(task_id_field)
        info.append(self.queue_name)
        info.append(str(self.position))
        published_field = str(self.published)
        if truncate:
            info.append(published_field.split(".")[0])
        else:
            info.append(published_field)
        info.append(str(self.args))
        info.append(str(self.kwargs))
        return info
def list_item_info ( self , truncate = True ) : info = [ ] task_id_field = str ( self . task_id ) if truncate : task_id_field = task_id_field . split ( "-" ) [ 0 ] + "-" info . append ( task_id_field ) else : info . append ( task_id_field ) info . append ( self . queue_name ) info . append ( str ( self . position ) ) published_field = str ( self . published ) if truncate : info . append ( published_field . split ( "." ) [ 0 ] ) else : info . append ( published_field ) info . append ( str ( self . args ) ) info . append ( str ( self . kwargs ) ) return info
Returns a list of strings corresponding to the attributes of this QueueItem
instance.
Returns a list of strings corresponding to the attributes of this QueueItem instance .
"""Returns a list of strings corresponding to the attributes of this QueueItem
        instance. If `truncate=True` (the default), the `task_id` and `published` time
        will be shortened.
        """ # Remove microseconds.
self
truncate