summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--src/wikiarticle.go8
2 files changed, 1 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 677d771..a50e3c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
config.json
*.tsv
src/hnimdbbot
+tmp/
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)
}