mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-10 02:54:01 +01:00
Fixed artist sort, fixed helpers import in logs
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
%>
|
||||
<tr>
|
||||
<td id="name"><a href="artistPage?ArtistID=${artist['ArtistID']}">${artist['ArtistName']}</a></td>
|
||||
<td id="name"><span title="${artist['ArtistSortName']}"><span><a href="artistPage?ArtistID=${artist['ArtistID']}">${artist['ArtistName']}</a></td>
|
||||
<td id="album"><a href="albumPage?AlbumID=${artist['AlbumID']}">${artist['LatestAlbum']}</a></td>
|
||||
<td id="reldate">${releasedate}</td>
|
||||
<td id="have"><span title="${percent}"><span><div class="progress-container"><div style="width:${percent}%"><div class="havetracks">${havetracks}/${totaltracks}</div></div></div></td>
|
||||
@@ -57,7 +57,7 @@
|
||||
$('#artist_table').dataTable(
|
||||
{
|
||||
"aoColumns": [
|
||||
{ "sType": "anti-the" },
|
||||
{ "sType": "title-string"},
|
||||
null,
|
||||
null,
|
||||
{ "sType": "title-numeric"}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user