Fixed add-anime-lists patch

This commit is contained in:
2017-06-22 14:32:38 +02:00
parent 067f6bfa2a
commit 4ba516f8f3
4 changed files with 8 additions and 5 deletions

View File

@ -19,7 +19,9 @@ func main() {
// Iterate over the stream
for user := range allUsers {
if user.AnimeList() == nil {
exists, err := arn.DB.Exists("AnimeList", user.ID)
if err == nil && !exists {
fmt.Println(user.Nick)
err := arn.DB.Set("AnimeList", user.ID, &arn.AnimeList{