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."""
import asyncio
import json
import os
import sys
import typing
from datetime import date, datetime
from pprint import pformat
from time import time
import deepdiff # type: ignore
@ -93,9 +93,7 @@ def report_space_launch_change(
body = f"""
A space launch of interest was updated.
Get ready for two big piles of JSON.
{json.dumps(differences, indent=2)}
{pformat(differences)}
"""
agenda.mail.send_mail(config, subject, body)
@ -170,8 +168,7 @@ def main() -> None:
update_gandi(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)