Skip to content

Commit

Permalink
Merge 212036e into b5ed2d3
Browse files Browse the repository at this point in the history
  • Loading branch information
nrvikas committed May 2, 2019
2 parents b5ed2d3 + 212036e commit c782eef
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions server/planning/assignments/assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,14 +597,15 @@ def update_assignment_on_archive_operation(self, updates, original, operation=No
_id=get_user().get(config.ID_FIELD, ''))
assignee = assigned_to_user.get('display_name') if assigned_to_user else 'Unknown'
target_user = assignment_update_data['assignment'].get('assigned_to', {}).get('assignor_desk')
PlanningNotifications().notify_assignment(target_user=target_user,
message='assignment_complete_msg',
assignee=assignee,
coverage_type=get_coverage_type_name(
original.get('planning', {}).get('g2_content_type',
'')),
slugline=original.get('slugline'),
omit_user=True)
if not original.get('rewrite_of'):
PlanningNotifications().notify_assignment(target_user=target_user,
message='assignment_complete_msg',
assignee=assignee,
coverage_type=get_coverage_type_name(
original.get('planning', {}).get(
'g2_content_type', '')),
slugline=original.get('slugline'),
omit_user=True)

def create_delivery_for_content_update(self, items):
"""Duplicates the coverage/assignment for the archive rewrite
Expand Down

0 comments on commit c782eef

Please sign in to comment.