Sometimes the diff includes Python types

This commit is contained in:
Edward Betts 2024-09-09 19:16:21 +01:00
parent 82b2f69005
commit 20e8515bb7

View file

@ -2,11 +2,11 @@
"""Combined update script for various data sources.""" """Combined update script for various data sources."""
import asyncio import asyncio
import json
import os 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
@ -93,9 +93,7 @@ def report_space_launch_change(
body = f""" body = f"""
A space launch of interest was updated. A space launch of interest was updated.
Get ready for two big piles of JSON. {pformat(differences)}
{json.dumps(differences, indent=2)}
""" """
agenda.mail.send_mail(config, subject, body) agenda.mail.send_mail(config, subject, body)
@ -170,8 +168,7 @@ def main() -> None:
update_gandi(app.config) update_gandi(app.config)
agenda.geomob.update(app.config) agenda.geomob.update(app.config)
if hour % 12 == 0: agenda.fx.get_rates(app.config)
agenda.fx.get_rates(app.config)
update_thespacedevs(app.config) update_thespacedevs(app.config)