summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordev2026-06-26 02:48:18 +0200
committerdev2026-06-26 02:48:18 +0200
commitf3ed9396113de4d81ae0fadabc10ae59f7076862 (patch)
tree22333bac3e494ad3c4c3ea730fa3384c5732da7c
parent858b3dedce336c2d867b6fc3dea6b337db0426ac (diff)
downloadhnimdbbot-f3ed9396113de4d81ae0fadabc10ae59f7076862.tar.gz
.
-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)
}