retreive votes of the same day

This commit is contained in:
2019-11-27 11:35:56 +01:00
parent 9e3a10941a
commit 68eb55d8a7
5 changed files with 22 additions and 14 deletions

View File

@ -57,7 +57,7 @@ func FoodVotesList() []Vote {
log.Fatal(err)
}
lvotes, _ := bdd.GetVotesOfTheRange(db, time.Now().AddDate(0, 0, -1), time.Now().AddDate(0, 0, 0))
lvotes, _ := bdd.GetVotesOfTheDay(db)
for _, fo := range lvotes {
vf := Vote{fo, 1}