This commit is contained in:
@@ -4,12 +4,13 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"valera/internal/db"
|
||||
"valera/internal/modules/times"
|
||||
"valera/internal/states"
|
||||
|
||||
tgbot "github.com/go-telegram-bot-api/telegram-bot-api"
|
||||
"golang.org/x/exp/slices"
|
||||
|
||||
"valera/internal/db"
|
||||
"valera/internal/modules/times"
|
||||
"valera/internal/states"
|
||||
)
|
||||
|
||||
var names = []string{
|
||||
@@ -39,7 +40,7 @@ func (s *eatBotState) Do(text string, chatInfo *db.ChatInfo) error {
|
||||
log.Println(err)
|
||||
return nil
|
||||
}
|
||||
stat, err := s.dataBase.GetStatAfter(chatInfo.ChatID, times.GetStartDay())
|
||||
stat, err := s.dataBase.GetStatBetween(chatInfo.ChatID, times.GetStartDay(), times.GetNow())
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user