MCPcopy
hub / github.com/WebODM/WebODM / save

Function save

coreplugins/align-service/plugin.py:83–93  ·  view source on GitHub ↗
(data: dict)

Source from the content-addressed store, hash-verified

81
82
83def save(data: dict):
84 from app.plugins.functions import get_current_plugin
85 plugin = get_current_plugin(only_active=True)
86 data_store = plugin.get_global_data_store()
87
88 data_store.set_string('service_url', data.get('service_url')),
89 data_store.set_string('coverage_id', data.get('coverage_id')),
90 data_store.set_string('token', data.get('token')),
91 data_store.set_string('task_id', data.get('task_id')),
92 data_store.set_int('buffer_size', data.get('buffer_size')),
93 data_store.set_bool('bot_task_resizing_images', data.get('bot_task_resizing_images')),
94
95
96def config():

Callers 1

save_settingsMethod · 0.70

Calls 6

get_current_pluginFunction · 0.90
get_global_data_storeMethod · 0.80
set_stringMethod · 0.80
set_intMethod · 0.80
set_boolMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected