hdkv
/
i2_bot
Archived
1
Fork 0

Fix "is_active=127" error (maybe)

master
Vladimir Hodakov 2018-03-31 10:16:52 +04:00
parent 3129566a1c
commit 3db79300af
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (dc *DataCache) AddPokememe(pokememeData map[string]string, pokememeLocatio
// All objects are prepared, let's fill database with it!
c.Log.Debug("Filling pokememe...")
_, err := c.Db.NamedExec("INSERT INTO pokememes VALUES(NULL, :grade, :name, :description, :attack, :hp, :mp, :defence, :price, :purchaseable, :image_url, :player_id, 1, :created_at)", &pokememe)
_, err := c.Db.NamedExec("INSERT INTO pokememes VALUES(NULL, :grade, :name, :description, :attack, :hp, :mp, :defence, :price, :purchaseable, :image_url, :player_id, :is_active, :created_at)", &pokememe)
if err != nil {
return 0, err
}