style: clean up whitespace and formatting in main.py and webhook.py

This commit is contained in:
Elmar Kresse
2025-08-15 15:17:35 +02:00
parent 2c8cea7645
commit 401eafcca5
2 changed files with 8 additions and 9 deletions

View File

@@ -8,6 +8,7 @@ load_dotenv()
# Webhook URL from Discord
WEBHOOK_URL = os.getenv("WEBHOOK_URL")
# Funktion: Nachricht an Discord senden
def send_to_discord(property_data):
@@ -23,10 +24,9 @@ def send_to_discord(property_data):
f"**Beschreibung:** {property_data['abstract']}"
)
# Set headers
headers = {"Content-Type": "application/json"}
# Check for optional image URL
if "image_url" in property_data and property_data["image_url"]:
try: