From 94a8ad9b067e5a2c442ce47ce72d1a53eb444160 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 23 Jan 2023 18:00:43 +1100 Subject: Clean up some docs and naming inconsistencies --- backend/tol_data/enwiki/download_img_license_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/tol_data/enwiki/download_img_license_info.py') 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)) # -- cgit v1.2.3