Fix: prevent api calls if we are updating
This commit is contained in:
parent
ad98329552
commit
5ce0c35a11
@ -46,6 +46,9 @@ func ProcessBooks(books []Book, update bool) error {
|
|||||||
fmt.Printf(" ! Error saving updated markdown for book %s: %v\n", book.Title, err)
|
fmt.Printf(" ! Error saving updated markdown for book %s: %v\n", book.Title, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// We want to continue the loop here, in update's cases we don't
|
||||||
|
// want to do any api calls for info nor for images
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we dont have ID, search movie by Title and get the ID
|
// If we dont have ID, search movie by Title and get the ID
|
||||||
|
@ -46,6 +46,9 @@ func ProcessGames(games []Game, update bool) error {
|
|||||||
fmt.Printf(" ! Error saving updated markdown for game %s: %v\n", game.Title, err)
|
fmt.Printf(" ! Error saving updated markdown for game %s: %v\n", game.Title, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// We want to continue the loop here, in update's cases we don't
|
||||||
|
// want to do any api calls for info nor for images
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we dont have ID, search movie by Title and get the ID
|
// If we dont have ID, search movie by Title and get the ID
|
||||||
|
Loading…
Reference in New Issue
Block a user