Remove debug print
This commit is contained in:
parent
96b9e0ad71
commit
8c683002be
sevenkeys/database
|
@ -2,7 +2,6 @@ package database
|
|||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
|
||||
"github.com/mtgban/go-mtgban/cardtrader"
|
||||
)
|
||||
|
@ -41,14 +40,12 @@ func InsertCardtraderBlueprint(db *sql.DB, blueprint cardtrader.Blueprint) error
|
|||
blueprint.Name,
|
||||
blueprint.FixedProperties.Number)
|
||||
if err != nil {
|
||||
fmt.Println(blueprint.FixedProperties.Number)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
func GetAllCardtraderBlueprints(db *sql.DB) ([]cardtrader.Blueprint, error) {
|
||||
var blueprints []cardtrader.Blueprint
|
||||
|
||||
|
@ -61,6 +58,13 @@ func GetAllCardtraderBlueprints(db *sql.DB) ([]cardtrader.Blueprint, error) {
|
|||
|
||||
var blueprint cardtrader.Blueprint
|
||||
for rows.Next() {
|
||||
err := rows.Scan(&blueprint.Id, &blueprint.CategoryId, &blueprint.ExpansionId, &blueprint.Name, &blueprint.FixedProperties.Number)
|
||||
if err != nil {
|
||||
return blueprints, err
|
||||
}
|
||||
|
||||
blueprints = append(blueprints, blueprint)
|
||||
}
|
||||
|
||||
return blueprints, nil
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue