Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 545849028
  • Loading branch information
gYutaOba authored and starmandeluxe committed Jul 25, 2023
1 parent 0351622 commit 0685c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appengine/mailer/completion_mail_local_feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h3>Run Results for Local Shopping:</h3>
<th>Failed</th>
<th>Missing Merchant ID <small>(not processed)</small></th>
</tr>
{% for result in runResults['online'] %}
{% for result in runResults['local'] %}
<tr align="center">
<td><i>{{ result.description }}</i></td>
<td>{{ result.success_count }}</td>
Expand Down
5 changes: 3 additions & 2 deletions appengine/mailer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

"""Module that sends a completion email when Feedloader finishes all uploads."""

import ast
import datetime
import httplib
import json
Expand Down Expand Up @@ -161,9 +162,9 @@ def _extract_local_feed_setting(request_body):
local_inventory_feed_enabled = (
request_body.get('message', {})
.get('attributes', {})
.get('local_inventory_feed_enabled', False)
.get('local_inventory_feed_enabled', 'False')
)
return bool(local_inventory_feed_enabled)
return ast.literal_eval(local_inventory_feed_enabled)


def _get_run_result_list(run_results_dict):
Expand Down

0 comments on commit 0685c03

Please sign in to comment.