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 3b5bc3a commit abce8ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/py/flwr/server/superlink/state/sqlite_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ 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 @@ -294,6 +291,10 @@ def get_task_ins(
AND delivered_at = ""
"""
else:
# Convert a uint64 value to sint64 for SQLite
sint64_node_id = uint64_to_sint64(node_id)
data["node_id"] = sint64_node_id

# Retrieve all TaskIns for node_id
query = """
SELECT task_id
Expand Down

0 comments on commit abce8ad

Please sign in to comment.