From 21a6141ff0de6cfca4b0f3312753bd93648aed1b Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Tue, 15 Jun 2021 20:27:10 +0200 Subject: [PATCH] fix: Fix issue with unknown SM function --- janine/modules/janine/janine.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/janine/modules/janine/janine.py b/janine/modules/janine/janine.py index 8fddde0..303c399 100644 --- a/janine/modules/janine/janine.py +++ b/janine/modules/janine/janine.py @@ -111,7 +111,7 @@ class JanineModule(BaseModule): if warning.id in ids: continue - for jid, _ in self._sum.get_subscriptions_for_keywords(warning.landkreise): + for jid in self._sum.get_subscriptions_for_keywords(warning.landkreise): body = format_warning(warning) self.send_message(aioxmpp.JID.fromstr(jid), body) @@ -128,7 +128,7 @@ class JanineModule(BaseModule): return bare = str(msg.from_.bare()) - if self._sum.is_subscribed_to(bare, landkreis): + if self._sum.is_subscribed_to_keyword(bare, landkreis): self.send_message( msg.from_, 'Du hast den "%s" bereits abonniert' % (landkreis) ) @@ -147,7 +147,7 @@ class JanineModule(BaseModule): landkreis = " ".join(cmd[1:]) bare = str(msg.from_.bare()) - if not self._sum.is_subscribed_to(bare, landkreis): + if not self._sum.is_subscribed_to_keyword(bare, landkreis): self.send_message(msg.from_, 'Du hast "%s" nicht abonniert' % (landkreis)) return diff --git a/setup.py b/setup.py index 7a3198f..f4e8fb0 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( license = 'GPLv3', packages = find_packages(), install_requires = [ - 'mira>=0.2.0', + 'git+https://git.polynom.me/PapaTutuWawa/mira.git@0.3.0', 'requests>=2.23.0' ], zip_safe=True