snotes updates, actions, attachments, easy user space

This commit is contained in:
2026-09-22 17:31:55 -07:00
parent ce30c6f4f7
commit abfbf3de1f
21 changed files with 669 additions and 53 deletions

View File

@@ -69,8 +69,9 @@ async def init_db() -> None:
async def seed_users() -> None:
names = list(dict.fromkeys([*settings.user_list, settings.common_space]))
async with aiosqlite.connect(settings.database_path) as db:
for name in settings.user_list:
for name in names:
await db.execute("INSERT OR IGNORE INTO users (name) VALUES (?)", (name,))
await db.commit()