Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
ensure typing in sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 20, 2024
1 parent 255a865 commit 2585235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hivemind_core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,11 @@ def commit(self) -> bool:
def _row_to_client(row: sqlite3.Row) -> Client:
"""Convert a database row to a Client instance."""
return Client(
client_id=row["client_id"],
client_id=int(row["client_id"]),
api_key=row["api_key"],
name=row["name"],
description=row["description"],
is_admin=row["is_admin"],
is_admin=row["is_admin"] or False,
last_seen=row["last_seen"],
intent_blacklist=json.loads(row["intent_blacklist"] or "[]"),
skill_blacklist=json.loads(row["skill_blacklist"] or "[]"),
Expand Down

0 comments on commit 2585235

Please sign in to comment.