MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / store_setting

Function store_setting

web/pgadmin/settings/__init__.py:68–73  ·  view source on GitHub ↗

Set a configuration setting for the current user.

(setting, value)

Source from the content-addressed store, hash-verified

66
67
68def store_setting(setting, value):
69 """Set a configuration setting for the current user."""
70 data = Setting(user_id=current_user.id, setting=setting, value=value)
71
72 db.session.merge(data)
73 db.session.commit()
74
75
76def get_setting(setting, default=''):

Callers 6

upgrade_checkFunction · 0.90
storeFunction · 0.85
save_browser_tree_stateFunction · 0.85
save_file_format_settingFunction · 0.85
object_explorer_filterFunction · 0.85

Calls 1

SettingClass · 0.90

Tested by

no test coverage detected