snotes updates, actions, attachments, easy user space
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user