From 0eeb6bfcb0468c17d3f0799337b5fe968c057493 Mon Sep 17 00:00:00 2001 From: nemobis Date: Fri, 7 Feb 2020 14:17:14 +0200 Subject: [PATCH] Upload all relevant wikidump.7z and history.xml.7z Don't stop at the first 7z file found in the directory listing. Should be fast enough for most users. Fixes #326 --- uploader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uploader.py b/uploader.py index 500debc..d25735f 100644 --- a/uploader.py +++ b/uploader.py @@ -66,7 +66,9 @@ def upload(wikis, config={}, uploadeddumps=[]): if f.startswith('%s-' % (wikiname)) and (f.endswith('-wikidump.7z') or f.endswith('-history.xml.7z')): print "%s found" % f dumps.append(f) - break + # Re-introduce the break here if you only need to upload one file + # and the I/O is too slow + # break c = 0 for dump in dumps: