Force rebuild of scores

pull/30/head
Alinson S. Xavier 10 years ago
parent 85393b0d40
commit f8dc1d9eae

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

Loading…
Cancel
Save