Remove debug code

This commit is contained in:
The Magician 2024-05-21 15:27:36 +01:00
parent a7b8b66db3
commit d21f1274a6
1 changed files with 8 additions and 11 deletions

View File

@ -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 {