Commit 23a24421 authored by echel0n's avatar echel0n

Resolved `TypeError_manage_failed_downloads_mako in render_content...

Resolved `TypeError_manage_failed_downloads_mako in render_content 'FailedSnatch' object is not subscriptable`
Fixes SICKRAGE-APP-PY3-129
parent 8c7316b2
......@@ -41,19 +41,19 @@
</thead>
<tbody>
% for hItem in failedResults:
<% curRemove = "<input type=\"checkbox\" class=\"removeCheck\" id=\"remove-"+hItem["release"]+"\" />" %>
<% curRemove = "<input type=\"checkbox\" class=\"removeCheck\" id=\"remove-"+hItem.release+"\" />" %>
<tr>
<td class="text-nowrap">${hItem["release"]}</td>
<td class="text-nowrap">${hItem.release}</td>
<td class="table-fit">
% if hItem["size"] != -1:
${pretty_file_size(hItem["size"])}
% if hItem.size != -1:
${pretty_file_size(hItem.size)}
% else:
?
% endif
</td>
<td class="table-fit">
% if hItem["provider"].lower() in sickrage.app.search_providers.all():
<% provider = sickrage.app.search_providers.all()[hItem["provider"].lower()] %>
% if hItem.provider.lower() in sickrage.app.search_providers.all():
<% provider = sickrage.app.search_providers.all()[hItem.provider.lower()] %>
<i class="sickrage-providers sickrage-providers-${provider.id}"
title="${provider.name}"
style="vertical-align:middle;cursor: help;"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment