diff options
| author | dev | 2026-06-26 02:48:18 +0200 |
|---|---|---|
| committer | dev | 2026-06-26 02:48:18 +0200 |
| commit | f3ed9396113de4d81ae0fadabc10ae59f7076862 (patch) | |
| tree | 22333bac3e494ad3c4c3ea730fa3384c5732da7c | |
| parent | 858b3dedce336c2d867b6fc3dea6b337db0426ac (diff) | |
| download | hnimdbbot-f3ed9396113de4d81ae0fadabc10ae59f7076862.tar.gz | |
.
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | src/wikiarticle.go | 8 |
2 files changed, 1 insertions, 8 deletions
@@ -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) } |
