Skip to content

Commit 116bcf7

Browse files
committed
disable setting options via API until it is fixed by the author
1 parent f316280 commit 116bcf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/api/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ def get_config(self):
218218
return options
219219

220220
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+
221225
reqDict = vars(req)
222226
for o in reqDict:
223227
setattr(shared.opts, o, reqDict[o])

0 commit comments

Comments
 (0)