Remove debug code
This commit is contained in:
parent
a7b8b66db3
commit
d21f1274a6
|
@ -136,17 +136,15 @@ func main() {
|
||||||
check(err)
|
check(err)
|
||||||
log.Println("Created cache directories.")
|
log.Println("Created cache directories.")
|
||||||
|
|
||||||
/*
|
log.Println("Downloading set data from Scryfall...")
|
||||||
log.Println("Downloading set data from Scryfall...")
|
sets, err := methods.GetSets()
|
||||||
sets, err := methods.GetSets()
|
check(err)
|
||||||
check(err)
|
log.Println("Downloaded set data.")
|
||||||
log.Println("Downloaded set data.")
|
|
||||||
|
|
||||||
log.Println("Importing set data...")
|
log.Println("Importing set data...")
|
||||||
err = importSets(db, sets)
|
err = importSets(db, sets)
|
||||||
check(err)
|
check(err)
|
||||||
log.Println("Imported sets.")
|
log.Println("Imported sets.")
|
||||||
*/
|
|
||||||
|
|
||||||
log.Println("Downloading bulk data entry...")
|
log.Println("Downloading bulk data entry...")
|
||||||
allCardsBulkData, err := methods.GetBulkDataByType(types.BulkDataTypeAllCards)
|
allCardsBulkData, err := methods.GetBulkDataByType(types.BulkDataTypeAllCards)
|
||||||
|
@ -163,7 +161,6 @@ func main() {
|
||||||
|
|
||||||
if updated {
|
if updated {
|
||||||
log.Printf("Bulk data has been updated since last cache, redownloading.")
|
log.Printf("Bulk data has been updated since last cache, redownloading.")
|
||||||
return
|
|
||||||
err = cacheAllCardsFile(db, allCardsBulkData.DownloadUri, updatedAtTimestamp)
|
err = cacheAllCardsFile(db, allCardsBulkData.DownloadUri, updatedAtTimestamp)
|
||||||
check(err)
|
check(err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue