We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4a55c commit 391bcd7Copy full SHA for 391bcd7
sonar/settings.py
@@ -551,6 +551,7 @@ def decode(setting_key: str, setting_value: any) -> any:
551
552
553
def encode(setting: Setting, setting_value: any) -> dict[str, str]:
554
+ """Encodes the params to pass to api/settings/set according to setting value type"""
555
if isinstance(setting_value, list):
556
params = {"values": setting_value} if isinstance(setting_value[0], str) else {"fieldValues": [json.dumps(v) for v in setting_value]}
557
elif isinstance(setting_value, bool):
0 commit comments