disable setting options via API until it is fixed by the author
This commit is contained in:
parent
f316280ad3
commit
116bcf730a
|
@ -218,6 +218,10 @@ class Api:
|
||||||
return options
|
return options
|
||||||
|
|
||||||
def set_config(self, req: OptionsModel):
|
def set_config(self, req: OptionsModel):
|
||||||
|
# currently req has all options fields even if you send a dict like { "send_seed": false }, which means it will
|
||||||
|
# overwrite all options with default values.
|
||||||
|
raise RuntimeError('Setting options via API is not supported')
|
||||||
|
|
||||||
reqDict = vars(req)
|
reqDict = vars(req)
|
||||||
for o in reqDict:
|
for o in reqDict:
|
||||||
setattr(shared.opts, o, reqDict[o])
|
setattr(shared.opts, o, reqDict[o])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user