Common: Publish message to event's class name

This commit is contained in:
Mike Salvatore 2022-08-10 09:34:09 -04:00
parent a461226fec
commit 4da0cefa7d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class PyPubSubEventQueue(IEventQueue):
self._pypubsub_publisher.sendMessage(_INTERNAL_ALL_EVENT_TYPES_TOPIC, event=event) self._pypubsub_publisher.sendMessage(_INTERNAL_ALL_EVENT_TYPES_TOPIC, event=event)
def _publish_to_type_topic(self, event: AbstractEvent): def _publish_to_type_topic(self, event: AbstractEvent):
self._pypubsub_publisher.sendMessage(event.__name__, event=event) self._pypubsub_publisher.sendMessage(event.__class__.__name__, event=event)
def _publish_to_tags_topics(self, event: AbstractEvent): def _publish_to_tags_topics(self, event: AbstractEvent):
for tag in event.tags: for tag in event.tags: