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 f316280 commit 116bcf7Copy full SHA for 116bcf7
modules/api/api.py
@@ -218,6 +218,10 @@ def get_config(self):
218
return options
219
220
def set_config(self, req: OptionsModel):
221
+ # currently req has all options fields even if you send a dict like { "send_seed": false }, which means it will
222
+ # overwrite all options with default values.
223
+ raise RuntimeError('Setting options via API is not supported')
224
+
225
reqDict = vars(req)
226
for o in reqDict:
227
setattr(shared.opts, o, reqDict[o])
0 commit comments