Skip to content

Commit 65ae7d9

Browse files
committed
This field should be a string according to resque -- display it as such.
1 parent caf102c commit 65ae7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resweb/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def failed_jobs(self):
220220
import json
221221
except ImportError:
222222
import simplejson as json
223+
223224
jobs = []
224225
for job in failure.all(self.resq, self._start, self._start + 20):
225226
backtrace = job['backtrace']
@@ -228,7 +229,7 @@ def failed_jobs(self):
228229
backtrace = '\n'.join(backtrace)
229230

230231
item = job
231-
item['failed_at'] = str(datetime.datetime.fromtimestamp(float(job['failed_at'])))
232+
item['failed_at'] = job['failed_at']
232233
item['worker_url'] = '/workers/%s/' % job['worker']
233234
item['payload_args'] = str(job['payload']['args'])
234235
item['payload_class'] = job['payload']['class']

0 commit comments

Comments
 (0)