ofc not send 'force' attrib to game...

This commit is contained in:
Dominik Moritz Roth 2024-10-02 19:58:36 +02:00
parent 42f91a2279
commit 7da36e8a14

View File

@ -250,7 +250,7 @@ class Nucon(Enum):
print(f"Dummy mode: {'Force ' if force else ''}Setting {parameter.name} to {value}")
return
response = requests.post(NuconConfig.base_url, params={"variable": parameter.name, "value": str(value), "force": str(force).lower()})
response = requests.post(NuconConfig.base_url, params={"variable": parameter.name, "value": str(value)})
if response.status_code != 200:
raise Exception(f"Failed to set parameter {parameter.name}. Status code: {response.status_code}")