Better space launch change email
This commit is contained in:
parent
237db73b5d
commit
5f13bff9bd
|
@ -6,12 +6,12 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import typing
|
import typing
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
from pprint import pformat
|
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import deepdiff # type: ignore
|
import deepdiff # type: ignore
|
||||||
import flask
|
import flask
|
||||||
import requests
|
import requests
|
||||||
|
import yaml
|
||||||
|
|
||||||
import agenda.bristol_waste
|
import agenda.bristol_waste
|
||||||
import agenda.fx
|
import agenda.fx
|
||||||
|
@ -116,7 +116,9 @@ def report_space_launch_change(
|
||||||
body = f"""
|
body = f"""
|
||||||
A space launch of interest was updated.
|
A space launch of interest was updated.
|
||||||
|
|
||||||
{pformat(differences)}
|
{yaml.dump(differences)}
|
||||||
|
|
||||||
|
https://edwardbetts.com/agenda/launches
|
||||||
"""
|
"""
|
||||||
|
|
||||||
agenda.mail.send_mail(config, subject, body)
|
agenda.mail.send_mail(config, subject, body)
|
||||||
|
|
Loading…
Reference in a new issue