diff options
author | Emile <git@emile.space> | 2024-11-09 16:28:47 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-11-09 16:28:47 +0100 |
commit | 5fb4b1f7dd6b373786a64dfe0ac59955fb6d964c (patch) | |
tree | 26ae664159632ae14b2c608d01ee4561b931bf8d /src/bot.go | |
parent | c685cc8f25adc5b2b72e4bda185fef7ec8dd6592 (diff) |
yolo r2con push all
Diffstat (limited to 'src/bot.go')
-rw-r--r-- | src/bot.go | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/bot.go b/src/bot.go index 4708fee..65c1c29 100644 --- a/src/bot.go +++ b/src/bot.go @@ -111,22 +111,15 @@ func (s *State) GetBotById(id int) (Bot, error) { WHERE bo.id=? GROUP BY bo.id; - `, id).Scan(&botid, &botname, &botsource, &ownerids, &ownernames, &archids, &archnames, &bitids, &bitnames) + `, id).Scan(&botid, &botname, &botsource, + &ownerids, &ownernames, + &archids, &archnames, + &bitids, &bitnames) if err != nil { log.Println(err) return Bot{}, err } - // log.Println("botid: ", botid) - // log.Println("botname: ", botname) - // log.Println("botsource: ", botsource) - // log.Println("ownerids: ", ownerids) - // log.Println("ownernames: ", ownernames) - // log.Println("archid: ", archids) - // log.Println("archname: ", archnames) - // log.Println("bitid: ", bitids) - // log.Println("bitname: ", bitnames) - ownerIDList := strings.Split(ownerids, ",") ownerNameList := strings.Split(ownernames, ",") @@ -181,6 +174,7 @@ func (s *State) GetBotById(id int) (Bot, error) { log.Println("ERR4: ", err) return Bot{}, err default: + // log.Printf("returning bot with archs %+v and bits %+v", archs, bits) return Bot{botid, botname, botsource, users, archs, bits}, nil } } |