aboutsummaryrefslogtreecommitdiff
path: root/backend/tol_data/enwiki/download_img_license_info.py
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-23 18:00:43 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-23 18:01:13 +1100
commit94a8ad9b067e5a2c442ce47ce72d1a53eb444160 (patch)
tree2056373ee56b8b2f8269ac3e94d40f8f0e6eec0d /backend/tol_data/enwiki/download_img_license_info.py
parent796c4e5660b1006575b8f2af9d99e2ce592c767a (diff)
Clean up some docs and naming inconsistencies
Diffstat (limited to 'backend/tol_data/enwiki/download_img_license_info.py')
-rwxr-xr-xbackend/tol_data/enwiki/download_img_license_info.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/tol_data/enwiki/download_img_license_info.py b/backend/tol_data/enwiki/download_img_license_info.py
index 0a809ac..17e15b4 100755
--- a/backend/tol_data/enwiki/download_img_license_info.py
+++ b/backend/tol_data/enwiki/download_img_license_info.py
@@ -89,7 +89,7 @@ def downloadInfo(imgDb: str) -> None:
continue
# Parse response-object
if 'query' not in responseObj or 'pages' not in responseObj['query']:
- print('WARNING: Response object for doesn\'t have page data')
+ print('WARNING: Response object doesn\'t have page data')
print('\tImage batch: ' + '|'.join(imgBatch))
if 'error' in responseObj:
errorCode = responseObj['error']['code']
@@ -138,7 +138,6 @@ def downloadInfo(imgDb: str) -> None:
credit = html.unescape(credit)
credit = urllib.parse.unquote(credit)
# Add to db
- print((title, license, artist, credit, restrictions, url))
dbCur.execute('INSERT INTO imgs VALUES (?, ?, ?, ?, ?, ?)',
(title, license, artist, credit, restrictions, url))
#