Commit 15d9d2b4 authored by Antoine Millet's avatar Antoine Millet
Browse files

Changed API of jobs cli handler method to take a TQL in input (TQL is not used yet)

parent 261529c8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -626,15 +626,18 @@ class CliHandler(OnlineCCHandler):
        return errs.get_dict()

    @listed
    def jobs(self, conn, show_done=True, show_running=True):
    def jobs(self, conn, query, show_done=True, show_running=True):
        '''
        Return all jobs.

        :param show_done: show done jobs
        :param show_running: show running jobs
        '''
        props = ('id', 'status', 'created', 'ended',
                 'duration', 'done', 'author')

        if query:
            raise NotImplementedError('Tql in jobs is not yet supported.')
        props = ('id', 'author', 'created', 'ended',
                 'duration', 'done', 'title', 'status')
        jobs = []
        for job in self._server.jobs.iterjobs(show_done, show_running):