From 990f07f3a9530f7c1c882709add07837c35159e5 Mon Sep 17 00:00:00 2001 From: Antoine Wood Date: Wed, 21 Sep 2022 16:46:57 -0400 Subject: [PATCH 1/3] Issue 371: Bug Fix. Type error on send_others_on_topic. - use .items instead of .value dict method for iterator --- sdk/python/flet/pubsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/flet/pubsub.py b/sdk/python/flet/pubsub.py index b3ebf49ddb..bf788db403 100644 --- a/sdk/python/flet/pubsub.py +++ b/sdk/python/flet/pubsub.py @@ -40,7 +40,7 @@ def send_others_on_topic(self, except_session_id: str, topic: str, message: Any) ) with self.__lock: if topic in self.__topic_subscribers: - for session_id, handler in self.__topic_subscribers[topic].values(): + for session_id, handler in self.__topic_subscribers[topic].items(): if except_session_id != session_id: self.__send(handler, [topic, message]) From 162a2e78e76a0bf92a1762699895678e11fc3b3f Mon Sep 17 00:00:00 2001 From: Antoine Wood Date: Wed, 21 Sep 2022 16:53:52 -0400 Subject: [PATCH 2/3] Issue 371: Bug Fix. Type error on send_others_on_topic. - use .items instead of .value dict method for iterator --- sdk/python/flet/pubsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/flet/pubsub.py b/sdk/python/flet/pubsub.py index bf788db403..7c6e95d6da 100644 --- a/sdk/python/flet/pubsub.py +++ b/sdk/python/flet/pubsub.py @@ -40,7 +40,7 @@ def send_others_on_topic(self, except_session_id: str, topic: str, message: Any) ) with self.__lock: if topic in self.__topic_subscribers: - for session_id, handler in self.__topic_subscribers[topic].items(): + for session_id, handler in self.__topic_subscribers[topic].items() : if except_session_id != session_id: self.__send(handler, [topic, message]) From ce573062de762ad2ecc2aa0da702d164c46d9948 Mon Sep 17 00:00:00 2001 From: Antoine Wood Date: Wed, 21 Sep 2022 16:54:07 -0400 Subject: [PATCH 3/3] Issue 371: Bug Fix. Type error on send_others_on_topic. - use .items instead of .value dict method for iterator --- sdk/python/flet/pubsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/flet/pubsub.py b/sdk/python/flet/pubsub.py index 7c6e95d6da..bf788db403 100644 --- a/sdk/python/flet/pubsub.py +++ b/sdk/python/flet/pubsub.py @@ -40,7 +40,7 @@ def send_others_on_topic(self, except_session_id: str, topic: str, message: Any) ) with self.__lock: if topic in self.__topic_subscribers: - for session_id, handler in self.__topic_subscribers[topic].items() : + for session_id, handler in self.__topic_subscribers[topic].items(): if except_session_id != session_id: self.__send(handler, [topic, message])