Skip to content

Commit

Permalink
Add new "skipped" status for dump files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydriz committed Aug 28, 2015
1 parent 40ccadb commit bc933cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dumps.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ def getDumpProgress(self, wikidb, dumpdate):
return output
elif status == "in-progress" or status == "waiting":
progress += 1
elif status == "done":
elif status == "done" or status == "skipped":
done += 1
else:
# Return output in case a new status appears.
# We do not want to corrupt our database with false entries
output = "unknown"
return output
if progress > 0:
output = "progress"
elif progress == 0 and done > 0:
Expand Down

0 comments on commit bc933cb

Please sign in to comment.