aboutsummaryrefslogtreecommitdiff
path: root/backend/hist_data/enwiki
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2023-01-18 20:21:22 +1100
committerTerry Truong <terry06890@gmail.com>2023-01-18 20:21:22 +1100
commit4cb5ec14bcfb2db4574c0b0b0d4d4aff59e24c8a (patch)
tree290df19a175d41b8bb4206af14eb179c122442af /backend/hist_data/enwiki
parentf3e08d5e636849f9c503d65cee8953f183a3dc2a (diff)
Adjust backend docs after another db regeneration
Diffstat (limited to 'backend/hist_data/enwiki')
-rwxr-xr-xbackend/hist_data/enwiki/download_imgs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/hist_data/enwiki/download_imgs.py b/backend/hist_data/enwiki/download_imgs.py
index 378de7f..df40bae 100755
--- a/backend/hist_data/enwiki/download_imgs.py
+++ b/backend/hist_data/enwiki/download_imgs.py
@@ -24,7 +24,7 @@ USER_AGENT = 'terryt.dev (terry06890@gmail.com)'
TIMEOUT = 1
# https://en.wikipedia.org/wiki/Wikipedia:Database_download says to 'throttle to 1 cache miss per sec'
# It's unclear how to properly check for cache misses, so we just aim for 1 per sec
-EXP_BACKOFF = False # If True, double the timeout each time a download error occurs (otherwise just exit)
+EXP_BACKOFF = True # If True, double the timeout each time a download error occurs (otherwise just exit)
def downloadImgs(imgDb: str, outDir: str, timeout: int) -> None:
if not os.path.exists(outDir):