Skip to content
Snippets Groups Projects
Commit 85e95294 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Limit job listing on screen to 30 entries.

parent 43db35db
Branches
Tags
No related merge requests found
......@@ -400,14 +400,14 @@ class DbConnector(object):
'ARCHIVED',
'COMPLETED',
'ERROR')
AND
job_type IN ('pullFromVoSpace',
AND job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC;
ORDER BY creation_time DESC
LIMIT 30;
""")
result = cursor.fetchall()
cursor.close()
......@@ -440,14 +440,14 @@ class DbConnector(object):
owner_id
FROM job
WHERE phase = %s
AND
job_type IN ('pullFromVoSpace',
AND job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC;
ORDER BY creation_time DESC
LIMIT 30;
""",
(phase,))
else:
......@@ -460,14 +460,14 @@ class DbConnector(object):
owner_id
FROM job
WHERE phase = %s
AND
job_type IN ('pullFromVoSpace',
AND job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC;
ORDER BY creation_time DESC
LIMIT 30;
""",
(phase,))
result = cursor.fetchall()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment