duplicata

This commit is contained in:
WEBER Antoine 2015-09-24 00:24:51 +02:00
parent 20f485b2ce
commit 3023f16a30
2 changed files with 3 additions and 3 deletions

View File

@ -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" 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 " + " FROM metadata_items i, media_items t "
+ " WHERE i.id = t.metadata_item_id AND i.title != '' AND t.library_section_id = ? " + " 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); row.duree = formatDuree(row.second);

View File

@ -9,8 +9,8 @@ block content
label Télécharger label Télécharger
br br
each file, i in movie.file each file, i in movie.file
file.size a(href="/file/#{file.id}/#{file.filename}")
a(href="/file/#{file.id}/#{file.filename}")= file.filename #{file.size} #{file.filename}
br br
label Résumé label Résumé