From 399bf6520a74400aec69b92404f513fdf8a6db22 Mon Sep 17 00:00:00 2001 From: Kim Diallo Date: Sat, 3 Jan 2026 02:47:29 +0100 Subject: [PATCH] src/dlw/marvin_ops.py aktualisiert --- src/dlw/marvin_ops.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dlw/marvin_ops.py b/src/dlw/marvin_ops.py index 7bb41af..aadda61 100644 --- a/src/dlw/marvin_ops.py +++ b/src/dlw/marvin_ops.py @@ -6,10 +6,8 @@ class MarvinClient: self.api_key = os.getenv('MARVIN_API_KEY') self.asteroid = os.getenv('UBERSPACE_ASTEROID') self.base_url = "https://api.uberspace.de/api/v1/external" - self.headers = {"Authorization": f"Api-Key {self.api_key}"} def get_status(self): - """Beispiel: Abfrage des Asteroid-Status.""" url = f"{self.base_url}/asteroids/{self.asteroid}" - res = requests.get(url, headers=self.headers) + res = requests.get(url, headers={"Authorization": f"Api-Key {self.api_key}"}) return res.json() if res.status_code == 200 else None \ No newline at end of file