Fixed artist sort, fixed helpers import in logs

This commit is contained in:
Remy
2011-08-06 12:29:13 -07:00
parent 644344cb27
commit 7199c610b8
4 changed files with 23 additions and 11 deletions
+8 -8
View File
@@ -1,4 +1,7 @@
<%inherit file="base.html"/>
<%!
from headphones import helpers
%>
<%def name="body()">
<table class="display" id="log_table">
@@ -13,17 +16,14 @@
<tbody>
%for line in lineList:
<%
from headphones import helpers
out_tuple = helpers.extract_logline(line)
if out_tuple:
timestamp, level, thread, message = out_tuple
%>
%if timestamp and level and thread and message:
%if out_tuple:
<tr>
<td id="timestamp">${timestamp}</td>
<td id="level">${level}</td>
<td id="thread">${thread}</td>
<td id="message">${message.decode('utf-8')}</td>
<td id="timestamp">${out_tuple[0]}</td>
<td id="level">${out_tuple[1]}</td>
<td id="thread">${out_tuple[2]}</td>
<td id="message">${out_tuple[3].decode('utf-8')}</td>
</tr>
%endif
%endfor