diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-06-03 11:03:25 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-06-03 11:03:25 +1000 |
| commit | 811946498edc472d91e5ca8d41a4a0568e0d6e8f (patch) | |
| tree | 3ec4f0950950bc7b3cff782f4f9c2b13f9b51cb3 /backend/data/enwiki/lookupPage.py | |
| parent | 515e02b9453f7740d7429ad7e11d913e32e5ffdb (diff) | |
Adjust enwiki dump-index-db and lookup script to include wiki-ids
Diffstat (limited to 'backend/data/enwiki/lookupPage.py')
| -rwxr-xr-x | backend/data/enwiki/lookupPage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/data/enwiki/lookupPage.py b/backend/data/enwiki/lookupPage.py index 1d379e7..76f2f95 100755 --- a/backend/data/enwiki/lookupPage.py +++ b/backend/data/enwiki/lookupPage.py @@ -23,7 +23,7 @@ query = "SELECT title, offset, next_offset FROM offsets WHERE title = ?" row = dbCur.execute(query, (pageTitle,)).fetchone() if row == None: print("Title not found") - sys.exit(0) + sys.exit(1) (_, pageOffset, endOffset) = row dbCon.close() print(f"Found chunk at offset {pageOffset}") |
