diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wikiarticle.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wikiarticle.go b/src/wikiarticle.go index 19ead9d..85bf28a 100644 --- a/src/wikiarticle.go +++ b/src/wikiarticle.go @@ -28,7 +28,6 @@ type wikiArticleEntry struct { // fetchWikiArticlesData queries the custom wiki server for all entries // that have a wiki_article and updates the imdb table with extracted fields. func (a *App) fetchWikiArticlesData() error { - /* rows, err := a.DB.Query(` SELECT id, imdb_id, wiki_article FROM imdb WHERE wiki_article IS NOT NULL @@ -36,13 +35,6 @@ func (a *App) fetchWikiArticlesData() error { AND (synopsis IS NULL OR description IS NULL OR year IS NULL OR poster_url IS NULL OR license IS NULL OR license_url IS NULL OR num_accolades IS NULL) `) - */ - rows, err := a.DB.Query(` - SELECT id, imdb_id, wiki_article FROM imdb - WHERE wiki_article IS NOT NULL - AND (synopsis IS NULL OR description IS NULL OR year IS NULL - OR poster_url IS NULL OR license IS NULL OR license_url IS NULL OR num_accolades IS NULL) - `) if err != nil { return fmt.Errorf("query wiki articles: %w", err) } |
