Browse Source

Fix potential problem with timestamps in RSS.

pull/183/head
shypike 11 years ago
parent
commit
376428d12d
  1. 2
      sabnzbd/interface.py

2
sabnzbd/interface.py

@ -2604,7 +2604,7 @@ def GetRssLog(feed):
# Sort in reverse order of time stamp for 'Done'
dnames = [job for job in jobs.keys() if jobs[job]['status'] == 'D']
dnames.sort(lambda x, y: jobs[y].get('time', 0) - jobs[x].get('time', 0))
dnames.sort(lambda x, y: int(jobs[y].get('time', 0) - jobs[x].get('time', 0)))
done = [xml_name(jobs[job]['title']) for job in dnames]

Loading…
Cancel
Save