From 75f7516978e74e8795e550e722e2b8805c284230 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 29 May 2012 12:11:14 +0200 Subject: [PATCH] use rendered videos for tests --- static/js/pandora/tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/tests.js b/static/js/pandora/tests.js index 995ac4990..a932e97d1 100644 --- a/static/js/pandora/tests.js +++ b/static/js/pandora/tests.js @@ -4,12 +4,12 @@ pandora.tests = function() { var tests = []; pandora.api.find({ - query: {conditions: [], operator: '&'}, + query: {conditions: [{key: 'rendered', value: true, operator: '='}], operator: '&'}, sort: [{key: 'random', operator:'+'}], - keys: ['id', 'rendered', 'duration'], + keys: ['id', 'duration'], range: [0, 10] }, function(result) { - var item = result.data.items.filter(function(item) { return item.rendered && item.duration > 300; })[0], + var item = result.data.items.filter(function(item) { return item.duration > 300; })[0], position = 60; pandora.UI.set('videoPoints.' + item.id, { annotation: '',