From 5f13bff9bd34fc182f6148964bd45bfebabdf429 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 12 Oct 2024 14:00:58 +0100 Subject: [PATCH] Better space launch change email --- update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 8465e8a..3216ed4 100755 --- a/update.py +++ b/update.py @@ -6,12 +6,12 @@ import os import sys import typing from datetime import date, datetime -from pprint import pformat from time import time import deepdiff # type: ignore import flask import requests +import yaml import agenda.bristol_waste import agenda.fx @@ -116,7 +116,9 @@ def report_space_launch_change( body = f""" A space launch of interest was updated. -{pformat(differences)} +{yaml.dump(differences)} + +https://edwardbetts.com/agenda/launches """ agenda.mail.send_mail(config, subject, body)