Fix home stats Last Watched to use watched percent specified in settings

This commit is contained in:
Jonathan Wong 2015-09-16 01:13:08 -07:00
commit 7170dbd800
3 changed files with 23 additions and 8 deletions

View file

@ -82,12 +82,15 @@
currentActivity();
setInterval(currentActivity, 15000);
function getHomeStats(days, stat_type, stat_count) {
function getHomeStats(days, stat_type, stat_count, notify_watched_percent) {
$.ajax({
url: 'home_stats',
cache: false,
async: true,
data: {time_range: days, stat_type: stat_type, stat_count: stat_count},
data: {time_range: days,
stat_type: stat_type,
stat_count: stat_count,
notify_watched_percent: notify_watched_percent},
complete: function(xhr, status) {
$("#home-stats").html(xhr.responseText);
}
@ -165,7 +168,10 @@
}
});
getHomeStats(${config['home_stats_length']}, ${config['home_stats_type']}, ${config['home_stats_count']});
getHomeStats(${config['home_stats_length']},
${config['home_stats_type']},
${config['home_stats_count']},
${config['notify_watched_percent']});
getLibraryStatsHeader();
getLibraryStats();