Skip to content

Commit

Permalink
Merge pull request #364 from preranaandure/master
Browse files Browse the repository at this point in the history
Email template change
  • Loading branch information
xzzy authored Jan 20, 2025
2 parents 9209fb6 + 6e31b54 commit 0e95b0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion disturbance/components/proposals/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def send_proposal_prefill_error_email_notification(proposal, user, task_id):
context = {
'proposal': proposal,
'task_id': task_id,
'greeting': 'Assessor',
#'greeting': 'Assessor',
'url': url,
}

Expand Down
6 changes: 4 additions & 2 deletions disturbance/management/commands/poll_sqs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,10 @@ def update_retries(msg):
update_retries(msg)

def update_layer_data(self, layer_data, new_layer_data):
# Convert layer_data to a dictionary for easier updates
layer_data_dict = {layer['name']: layer for layer in layer_data}
layer_data_dict={}
if layer_data:
# Convert layer_data to a dictionary for easier updates
layer_data_dict = {layer['name']: layer for layer in layer_data}
for new_layer in new_layer_data:
name = new_layer['name']
if name in layer_data_dict:
Expand Down

0 comments on commit 0e95b0a

Please sign in to comment.