Skip to content

Commit 5a68e76

Browse files
committed
commandId=1 -> commandId=2
1 parent 5b51aa1 commit 5a68e76

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

qiita_pet/handlers/admin_processing_job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ def get(self):
7272
(heartbeat > current_date - interval '14' day OR
7373
heartbeat is NULL)"""
7474
TRN.add(sql, [command_id])
75+
print (f'-----> {command_id}')
7576
jids = TRN.execute_fetchflatten()
7677

7778
jobs = []
7879
for jid in jids:
7980
job = PJ(jid)
81+
msg = ''
8082
if job.status == 'error':
8183
msg = job.log.msg
8284
elif job.status == 'running':

qiita_pet/test/test_admin_processing_job_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_get(self):
3232

3333
class TestAJAXAdminProcessingJobListing(BaseAdminTests):
3434
def test_get(self):
35-
response = self.get('/admin/processing_jobs/list?sEcho=3&commandId=1')
35+
response = self.get('/admin/processing_jobs/list?sEcho=3&commandId=2')
3636
self.assertEqual(response.code, 200)
3737

3838
exp = {'sEcho': '3', 'recordsTotal': 0, 'recordsFiltered': 0,

0 commit comments

Comments
 (0)