+ obituaries_html = "";
+ obituaries_total = len(obituaries) * 2
+ obituaries_covered = 0
+ for i, obit in enumerate(obituaries):
+ if obit["query"] != True:
+ query_success = "uncovered"
+ else:
+ query_success = "covered"
+ obituaries_covered += 1
+ if obit["yes_response"] != True:
+ obit_success = "uncovered"
+ else:
+ obit_success = "covered"
+ obituaries_covered += 1
+ obituaries_html += location_row.format(i, query_success, obit_success)
+ obituaries_percent = round((obituaries_covered / float(obituaries_total)) * 100, 1)
+
+ actions.sort()
+ actions_html = "";
+ actions_total = len(actions)
+ actions_covered = 0
+ for name, action in actions:
+ if action["message"] != True:
+ success = "uncovered"
+ else:
+ success = "covered"
+ actions_covered += 1
+ actions_html += arb_msg_row.format(name, success)
+ actions_percent = round((actions_covered / float(actions_total)) * 100, 1)
+