Tweak filename hashing.

This commit is contained in:
Michael Still 2014-05-26 16:23:22 +10:00
parent 3eb5775ffb
commit 6873936498
1 changed files with 1 additions and 2 deletions

View File

@ -143,8 +143,7 @@ for filename in ninety_days_of_filenames():
patchset = j['patchSet']['number']
project = j['change']['project']
patch_key = 'patches/%s/%s/%s' % (project, number[:2],
number[2:])
patch_key = 'patches/%s/%s/%s' % (project, number[:2], number)
if os.path.exists('%s/%s.json' % (patch_key, number)):
with open('%s/%s.json' % (patch_key, patchset)) as f:
patches.setdefault(patch_key, {})