Force rebuild of scores

This commit is contained in:
2016-03-08 21:30:09 -05:00
parent 85393b0d40
commit f8dc1d9eae

View File

@@ -126,6 +126,9 @@ public class ScoreList
public int[] getAllValues(Long fromTimestamp, Long toTimestamp, Integer divisor)
{
// Force rebuild of the score table
getNewestValue();
Long offset = toTimestamp - (divisor - 1) * DateHelper.millisecondsInOneDay;
String query = "select ((timestamp - ?) / ?) as time, avg(score) from Score " +