Skip to content

Commit

Permalink
writing out daily date
Browse files Browse the repository at this point in the history
  • Loading branch information
vrandezo committed May 15, 2013
1 parent 6eb7ec8 commit 0e9d677
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daily-analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ def log(txt) :
if urllib.urlopen('https://dumps.wikimedia.org/other/incr/wikidatawiki/' + daily + '/status.txt').read() == 'done' :
urllib.urlretrieve('https://dumps.wikimedia.org/other/incr/wikidatawiki/' + daily + '/wikidatawiki-' + daily + '-pages-meta-hist-incr.xml.bz2', 'pages-meta-hist-incr.xml.bz2') #xxx
log('Done downloading daily ' + daily)
if lastdaily == 0 :
lastdaily = daily
else :
log('Daily not done yet - download aborted')
os.chdir('..')
Expand Down Expand Up @@ -342,6 +340,7 @@ def processfile(file) :
# process the dailies, starting with the newest
files = 0
for daily in reversed(dailies) :
if lastdaily == 0 : daily = lastdaily
if daily == stopdaily : break
log('Analysing daily ' + daily)
os.chdir('daily' + daily)
Expand Down

0 comments on commit 0e9d677

Please sign in to comment.