]> git.aero2k.de Git - urlbot-v3.git/commitdiff
dang it
authorThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 19:53:34 +0000 (21:53 +0200)
committerThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 19:53:43 +0000 (21:53 +0200)
distbot/plugins/feeds.py
distbot/plugins/plugin_help.py

index 4bf537bc7788b95943ccdfa2201967860268687c..4d5e5e71c769b3605b1566ce63538de31209b9fd 100644 (file)
@@ -26,7 +26,7 @@ class DSAWatcher(Worker):
                     "nick.dsa-watcher.start", "nick.dsa-watcher.stop", "nick.dsa-watcher.run",
                     "nick.dsa-watcher.crawl"]
     description = 'automatically crawls for newly published Debian Security Announces'
-    usage = "call with start, stop for background control or \"crawl\" for an intermediate status report"
+    usage = "call dsa-watcher with start, stop for background control or \"crawl\" for an intermediate status report"
 
     @staticmethod
     def get_id_from_about_string(about):
index ace89289b2af5c94d6f368567cb259d5c072b351..ff0e26a421088fb3984ef6d5bdea1dde6dced590 100644 (file)
@@ -46,11 +46,10 @@ class Plugins(Worker):
         ch.basic_ack(delivery_tag=method.delivery_tag)
 
     def build_reverse_lookup(self):
-        reverse_lookup = {}
         for plugin, definition in self.plugin_storage.items():
             for key in definition['bindings']:
                 if key.startswith("nick"):
-                    reverse_lookup[key.split('.')[1]] = plugin
+                    self.reverse_lookup[key.split('.')[1]] = plugin
 
     def send_help(self, plugin_name=None):
         if not plugin_name: