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
pull/346/head
nemobis 4 years ago committed by GitHub
parent 527401560c
commit 0eeb6bfcb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save