]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/daemon.py
Add lastupdate()
[collecty.git] / src / collecty / daemon.py
index e8d402e7e45b1150303c42b07099d59f74b74c35..d4e9b4a3e1b8d3424efcc5811e4d90ccd3fec198 100644 (file)
@@ -203,6 +203,13 @@ class Collecty(object):
 
                return plugin.graph_info(template_name, *args, **kwargs)
 
+       def last_update(self, template_name, *args, **kwargs):
+               plugin = self.get_plugin_from_template(template_name)
+               if not plugin:
+                       raise RuntimeError("Could not find template %s" % template_name)
+
+               return plugin.last_update(*args, **kwargs)
+
        def create_worker_threads(self, num=None):
                """
                        Creates a number of worker threads