Skip to content

Commit 88f2f63

Browse files
committed
fix: improve resilience of app_cmd comparison
1 parent 071c0c6 commit 88f2f63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

interactions/client/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,7 @@ def _build_sync_payload(
15591559

15601560
for local_cmd in self.interactions_by_scope.get(cmd_scope, {}).values():
15611561
remote_cmd_json = next(
1562-
(v for v in remote_commands if int(v["id"]) == local_cmd.cmd_id.get(cmd_scope)),
1563-
None,
1562+
(c for c in remote_commands if int(c["id"]) == int(local_cmd.cmd_id.get(cmd_scope, 0))), None
15641563
)
15651564
local_cmd_json = next((c for c in local_cmds_json[cmd_scope] if c["name"] == str(local_cmd.name)))
15661565

0 commit comments

Comments
 (0)