ui: Fix applying XMR settings with an empty remote urls list.

2024-05-20_merge
tecnovert 1 year ago
parent 9a1b7db2dc
commit 05e6edd5df
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 2
      basicswap/ui/page_settings.py

@ -60,7 +60,7 @@ def page_settings(self, url_split, post_string):
data['manage_daemon'] = True if get_data_entry(form_data, 'managedaemon_' + name) == 'true' else False data['manage_daemon'] = True if get_data_entry(form_data, 'managedaemon_' + name) == 'true' else False
data['rpchost'] = get_data_entry(form_data, 'rpchost_' + name) data['rpchost'] = get_data_entry(form_data, 'rpchost_' + name)
data['rpcport'] = int(get_data_entry(form_data, 'rpcport_' + name)) data['rpcport'] = int(get_data_entry(form_data, 'rpcport_' + name))
data['remotedaemonurls'] = get_data_entry(form_data, 'remotedaemonurls_' + name) data['remotedaemonurls'] = get_data_entry_or(form_data, 'remotedaemonurls_' + name, '')
data['automatically_select_daemon'] = True if get_data_entry(form_data, 'autosetdaemon_' + name) == 'true' else False data['automatically_select_daemon'] = True if get_data_entry(form_data, 'autosetdaemon_' + name) == 'true' else False
else: else:
data['conf_target'] = int(get_data_entry(form_data, 'conf_target_' + name)) data['conf_target'] = int(get_data_entry(form_data, 'conf_target_' + name))

Loading…
Cancel
Save