diff --git a/pyproject.toml b/pyproject.toml index b2f7c55f..2ad0aa49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.9.6" + version = "5.9.7" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/commands/matchmaking.py b/royalpack/commands/matchmaking.py index 65716325..2318cbf7 100644 --- a/royalpack/commands/matchmaking.py +++ b/royalpack/commands/matchmaking.py @@ -55,7 +55,12 @@ class MMTask: def is_running(self): return self.task is not None + def sync(self): + self._session.refresh(self._mmevent) + def get_response_line(self, response: MMResponse): + self.sync() + # noinspection PyListCreation line = [] @@ -90,6 +95,8 @@ class MMTask: @property def channel_text(self) -> str: + self.sync() + # noinspection PyListCreation text = [] @@ -116,6 +123,8 @@ class MMTask: @property def start_text(self) -> str: + self.sync() + # noinspection PyListCreation text = [] @@ -373,6 +382,7 @@ class MMTask: self.unregister_telegram_keyboard(inkm) async def telegram_channel_message_update(self): + log.debug(f"Updating message for: {self.mmid}") try: await asyncify( self.command.interface.serf.client.edit_message_text, diff --git a/royalpack/version.py b/royalpack/version.py index 5ff00f68..536e3396 100644 --- a/royalpack/version.py +++ b/royalpack/version.py @@ -1 +1 @@ -semantic = "5.9.6" +semantic = "5.9.7"