From 3023f16a303a4602d8a1364e5ebd9be26dcdf5d9 Mon Sep 17 00:00:00 2001 From: WEBER Antoine Date: Thu, 24 Sep 2015 00:24:51 +0200 Subject: [PATCH] duplicata --- routes/channel.js | 2 +- views/movie.jade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/channel.js b/routes/channel.js index bf92e69..9ca0cb7 100644 --- a/routes/channel.js +++ b/routes/channel.js @@ -41,7 +41,7 @@ router.get('/:id', function(req, res, next) { db.each("SELECT i.id as id, i.title as title, i.duration as second, i.year as year" + " FROM metadata_items i, media_items t " + " WHERE i.id = t.metadata_item_id AND i.title != '' AND t.library_section_id = ? " - + " ORDER BY i.title ASC",req.params.id, function(err, row) { + + " GROUP BY i.id",req.params.id, function(err, row) { row.duree = formatDuree(row.second); diff --git a/views/movie.jade b/views/movie.jade index 42daa1f..903203c 100644 --- a/views/movie.jade +++ b/views/movie.jade @@ -9,8 +9,8 @@ block content label Télécharger br each file, i in movie.file - file.size - a(href="/file/#{file.id}/#{file.filename}")= file.filename + a(href="/file/#{file.id}/#{file.filename}") + #{file.size} #{file.filename} br label Résumé