mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2026-01-17 01:42:26 +01:00
style: clean up whitespace and formatting in main.py and webhook.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user