Compare commits

..

No commits in common. "c6861c7d514b647ab0465c59f42c3bb45c75ca92" and "2d244f06318c8f880ea7279a043bb1202d21c049" have entirely different histories.

View file

@ -1,6 +1,7 @@
import configparser import configparser
import json import json
import os import os
import sys
import typing import typing
import warnings import warnings
from datetime import date, datetime, timedelta, timezone from datetime import date, datetime, timedelta, timezone
@ -15,7 +16,7 @@ import pandas
import pytz import pytz
import requests import requests
# from agenda import spacexdata from agenda import spacexdata
warnings.simplefilter(action="ignore", category=FutureWarning) warnings.simplefilter(action="ignore", category=FutureWarning)
@ -37,12 +38,8 @@ now_utc = datetime.now(timezone.utc)
next_us_presidential_election = date(2024, 11, 5) next_us_presidential_election = date(2024, 11, 5)
next_uk_general_election = date(2024, 5, 2) next_uk_general_election = date(2024, 5, 2)
config_filename = os.path.join(os.path.dirname(__file__), "..", "config")
assert os.path.exists(config_filename)
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.read(config_filename) config.read(os.path.join(os.path.dirname(__file__), "..", "config"))
access_key = config.get("exchangerate", "access_key") access_key = config.get("exchangerate", "access_key")
data_dir = config.get("data", "dir") data_dir = config.get("data", "dir")