Fuck python

This commit is contained in:
2026-01-05 23:54:35 +01:00
parent 4e2ea2b3ca
commit 8a3193afd5

View File

@@ -23,11 +23,10 @@ class SmsController:
def send_sms(self): def send_sms(self):
try: try:
with ApiClient(self.config) as api: with ApiClient(self.config) as api:
payload = json.dumps({"content": "The game is over ! Go check the board"})
api.default_headers["Authorization"] = f"Bearer {self._auth_data.get_token()}" api.default_headers["Authorization"] = f"Bearer {self._auth_data.get_token()}"
sms_api = SmsApi(api) sms_api = SmsApi(api)
sms_api.example(StrictStr(payload)) sms_api.example(StrictStr('{"content": "The game is over ! Go check the board"}'))
return jsonify({"success": True, "message": None}), 200 return jsonify({"success": True, "message": None}), 200
except Exception as e: except Exception as e:
print(e) print(e)