mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 06:47:42 +00:00
16 lines
621 B
Python
16 lines
621 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from providers.alert.rsgb_ical_alert_provider import RSGBICALAlertProvider
|
|
|
|
|
|
class RSGBHFContests(RSGBICALAlertProvider):
|
|
"""Alert provider for RSGB HF Contest calendar"""
|
|
|
|
POLL_INTERVAL_DAYS = 30
|
|
ALERTS_URL = "https://calendar.google.com/calendar/ical/a5ff31ebb1b4834dc7fff4c5415ae8251c6a9aa11f98c6af6e472b6c552b1915%40group.calendar.google.com/public/basic.ics"
|
|
|
|
def __init__(self, provider_config: dict[str, Any]) -> None:
|
|
super().__init__("RSGB HF Contests", provider_config, self.ALERTS_URL, self.POLL_INTERVAL_DAYS * 24 * 60 * 60)
|