Skip to content

Commit

Permalink
Upload all relevant wikidump.7z and history.xml.7z
Browse files Browse the repository at this point in the history
Don't stop at the first 7z file found in the directory listing.
Should be fast enough for most users.

Fixes WikiTeam#326
  • Loading branch information
nemobis authored Feb 7, 2020
1 parent 5274015 commit 0eeb6bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0eeb6bf

Please sign in to comment.