From 90a5e15bb824b84e5bb60337d6a57a1394090dc6 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Wed, 4 May 2022 01:17:06 +1000 Subject: Add scripts for obtaining/sending/displaying wikipedia descriptions Add backend/data/enwiki/ directory containing scripts and instructive READMEs. Adjust some other scripts to generate 'eol_ids' sqlite table separate from 'names'. Make server respond to /data/desc requests, and have client TileInfo component display response data. Also adjust .gitignore entries to be root-relative. --- backend/data/downloadImgsForReview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/data/downloadImgsForReview.py') diff --git a/backend/data/downloadImgsForReview.py b/backend/data/downloadImgsForReview.py index 12b52ff..03e22a8 100755 --- a/backend/data/downloadImgsForReview.py +++ b/backend/data/downloadImgsForReview.py @@ -31,7 +31,7 @@ eolIds = set() print("Reading in EOL IDs") dbCon = sqlite3.connect(dbFile) dbCur = dbCon.cursor() -for row in dbCur.execute("SELECT DISTINCT eol_id FROM names"): +for row in dbCur.execute("SELECT id FROM eol_ids"): eolIds.add(row[0]) dbCon.close() # Get eol-ids from images db -- cgit v1.2.3