MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / set_user_prefs

Function set_user_prefs

Scripts/ButSystem.py:1095–1111  ·  view source on GitHub ↗

Persist UI preferences for a user.

(username: str, accent_key: str, font_key: str, ui_theme_key: Optional[str]=None)

Source from the content-addressed store, hash-verified

1093 except Exception:
1094 pass
1095 if "bounty_set_by" not in pcols:
1096 try:
1097 cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_set_by TEXT")
1098 except Exception:
1099 pass
1100 if "bounty_updated_at" not in pcols:
1101 try:
1102 cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_updated_at TEXT")
1103 except Exception:
1104 pass
1105 if "bounty_reason" not in pcols:
1106 try:
1107 cur.execute("ALTER TABLE profiler_entries ADD COLUMN bounty_reason TEXT")
1108 except Exception:
1109 pass
1110 cur.execute("""
1111 CREATE TABLE IF NOT EXISTS profiler_attachments (
1112 id INTEGER PRIMARY KEY AUTOINCREMENT,
1113 entry_id INTEGER NOT NULL,
1114 filename_enc TEXT NOT NULL,

Callers 1

settings_appearanceFunction · 0.70

Calls 2

db_connectFunction · 0.70
now_zFunction · 0.70

Tested by

no test coverage detected