ci: fix remaining lint/type errors - react-compiler deps, None-indexable

This commit is contained in:
Pranjal Joshi
2026-05-31 14:56:55 +05:30
parent d5e35a885d
commit 60ce648a96
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ async def init_db() -> None:
# Seed default Network Topology design if designs table is empty
_default_design_id = str(_uuid_mod.uuid4())
row = await conn.exec_driver_sql("SELECT COUNT(*) FROM designs")
count = (row.fetchone())[0]
count_row = row.fetchone()
count = count_row[0] if count_row else 0
if count == 0:
await conn.exec_driver_sql(
"INSERT INTO designs (id, name, design_type, created_at, updated_at) "