Fix the updated_tags information by storing it in the session

This commit is contained in:
Joseph Schorr 2014-10-22 14:14:56 -04:00
parent 0ef17b082b
commit 612a5e5102
2 changed files with 8 additions and 5 deletions

View file

@ -302,10 +302,6 @@ def update_images(namespace, repository):
profile.debug('Parsing image data')
image_with_checksums = json.loads(request.data.decode('utf8'))
updated_tags = {}
for image in image_with_checksums:
updated_tags[image['Tag']] = image['id']
if get_authenticated_user():
profile.debug('Publishing push event')
username = get_authenticated_user().username
@ -326,6 +322,7 @@ def update_images(namespace, repository):
# Generate a job for each notification that has been added to this repo
profile.debug('Adding notifications for repository')
updated_tags = session.get('pushed_tags', {})
event_data = {
'updated_tags': updated_tags,
'pushed_image_count': len(image_with_checksums),