From d0873563bdef8a16deedb904a9f259e8401fdc54 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 19 Nov 2010 16:51:45 +0100 Subject: missing update event --- pyLoadCore.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 3a64f9802..01be0e185 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -66,6 +66,8 @@ from module.FileDatabase import PyFile from module.Scheduler import Scheduler from module.JsEngine import JsEngine +from module.PullEvents import UpdateEvent + from codecs import getwriter if os.name == "nt": enc = "cp850" @@ -711,11 +713,15 @@ class ServerMethods(): def add_files(self, pid, links): pid = int(pid) + p = self.core.files.getPackage() self.core.files.addLinks(links, pid) self.core.log.info(_("Added %(count)d links to package #%(package)d ") % {"count": len(links), "package": pid}) self.core.files.save() + e = UpdateEvent("pack", pid, "collector" if not p.queue else "queue") + self.core.pullManager.addEvent(e) + return pid def push_package_to_queue(self, id): -- cgit v1.2.3