go fmt
This commit is contained in:
parent
cd14452f31
commit
5c8c0eb69c
5 changed files with 10 additions and 8 deletions
|
@ -13,6 +13,6 @@ func GetUserByID(userToGet tgbotapi.ChatConfigWithUser, bot *tgbotapi.BotAPI) (e
|
|||
log.Error().Err(err).Msg("Unable to get info for user")
|
||||
return true, member
|
||||
}
|
||||
log.Debug().Interface("member",member).Msg("Got Info for user")
|
||||
log.Debug().Interface("member", member).Msg("Got Info for user")
|
||||
return false, member
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ package gaypoints
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
_ "modernc.org/sqlite"
|
||||
"github.com/rs/zerolog/log"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
var gpSelectUser *sql.Stmt
|
||||
|
@ -11,8 +11,9 @@ var gpSelectUser *sql.Stmt
|
|||
var gpSelectChat *sql.Stmt
|
||||
|
||||
var gpSet *sql.Stmt
|
||||
//TODO logging
|
||||
//TODO switch to SQL
|
||||
|
||||
// TODO logging
|
||||
// TODO switch to SQL
|
||||
func sqlGetAllGP(chatid int64) (gaypoints []gaypointShortDetails) {
|
||||
rows, err := gpSelectChat.Query(chatid)
|
||||
if err != nil {
|
||||
|
|
|
@ -10,8 +10,9 @@ var notifySetReminder *sql.Stmt
|
|||
var notifyGetReminders *sql.Stmt
|
||||
var notifyGetReminderDetails *sql.Stmt
|
||||
var notifyDeleteReminder *sql.Stmt
|
||||
//TODO logging
|
||||
//TODO switch to SQL
|
||||
|
||||
// TODO logging
|
||||
// TODO switch to SQL
|
||||
func InitDB() {
|
||||
const dbPath string = "data/db/notify.db"
|
||||
log.Info().Str("dbpath", dbPath).Msg("init database")
|
||||
|
|
|
@ -2,8 +2,8 @@ package nenefoot
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
_ "modernc.org/sqlite"
|
||||
"github.com/rs/zerolog/log"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
var gpSelectUser *sql.Stmt
|
||||
|
|
Loading…
Reference in a new issue