aboutsummaryrefslogtreecommitdiff
path: root/backend/tol_data/enwiki/download_img_license_info.py
diff options
context:
space:
mode:
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))
#