Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadnaseri committed Sep 10, 2024
1 parent 29d19f2 commit 3b5bc3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/py/flwr/server/superlink/state/sqlite_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def get_task_ins(
raise AssertionError(msg)

data: Dict[str, Union[str, int]] = {}
# Convert a uint64 value to sint64 for SQLite
sint64_node_id = uint64_to_sint64(node_id)
data["node_id"] = sint64_node_id

if node_id is None:
# Retrieve all anonymous Tasks
Expand All @@ -300,10 +303,6 @@ def get_task_ins(
AND delivered_at = ""
"""

# Convert a uint64 value to sint64 for SQLite
sint64_node_id = uint64_to_sint64(node_id)
data["node_id"] = sint64_node_id

if limit is not None:
query += " LIMIT :limit"
data["limit"] = limit
Expand Down

0 comments on commit 3b5bc3a

Please sign in to comment.