admin_bootstrap

This commit is contained in:
dev 2026-10-31 08:29:03 +00:00
parent 39c4067305
commit 2cd955f835

11
app.py
View File

@ -1914,8 +1914,10 @@ def bootstrap_admin() -> None:
bio_mode, bio_mode,
website, website,
location, location,
status_message,
banner_attachment_id,
updated_at updated_at
) VALUES (?, ?, '', '', 'txt', '', '', ?) ) VALUES (?, ?, '', '', 'txt', '', '', '', NULL, ?)
""", """,
(user_id, username, now_iso()), (user_id, username, now_iso()),
) )
@ -1928,8 +1930,13 @@ def bootstrap_admin() -> None:
name_color, name_color,
custom_css, custom_css,
theme_mode, theme_mode,
presence_mode,
profile_background_color,
profile_banner_color,
profile_visibility,
last_active_visibility,
updated_at updated_at
) VALUES (?, '#f7dce8', NULL, '', 'dark', ?) ) VALUES (?, '#f7dce8', NULL, '', 'dark', 'online', NULL, NULL, 'public', 'everyone', ?)
""", """,
(user_id, now_iso()), (user_id, now_iso()),
) )