We need the git sha as well to pull diffs.

This commit is contained in:
Michael Still 2014-05-27 11:06:03 +10:00
parent 30d554b4ff
commit 3bcf28bd7a
1 changed files with 3 additions and 2 deletions

View File

@ -89,7 +89,7 @@ while day < datetime.datetime.now():
# Reprocess the last 90 days?
FILENAME_RE = re.compile('^merged/([0-9]+)/([0-9]+)/([0-9]+)$')
if False:
if True:
for dirpath, subdirs, files in os.walk('merged'):
for filename in files:
m = FILENAME_RE.match('%s/%s' % (dirpath, filename))
@ -170,7 +170,8 @@ for filename in ninety_days_of_filenames():
'project': project,
'type': approval['type'],
'value': approval['value'],
'id': j['change']['id']}
'id': j['change']['id'],
'sha': j['patchSet']['revision']}
reviews.setdefault(author, [])
reviews[author].append(copy.copy(data))