From 9ee1cd6513567c457cee79203df7b4cc682d0432 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 24 Nov 2012 03:14:58 +0000 Subject: Fixed downloadadhocquery and cleaned up use of viewtype --- weblog-controller.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'weblog-controller.lua') diff --git a/weblog-controller.lua b/weblog-controller.lua index a58bb2c..1b6f09b 100644 --- a/weblog-controller.lua +++ b/weblog-controller.lua @@ -45,7 +45,6 @@ function viewweblog(self) end function downloadweblog(self) - self.conf.viewtype = "stream" local retval = viewweblog(self) local file = cfe({ type="longtext", value="", label="Weblog-"..os.date()..".tab" }) local content = {"sourcename\tclientuserid\tclientip\tlogdatetime\turi\tbytes\treason\tscore\tshortreason\tbadyesno\tdeniedyesno\tbypassyesno"} @@ -82,10 +81,9 @@ function adhocquery(self) end function downloadadhocquery(self) - self.conf.viewtype = "stream" - local retval = self.model.getnewadhocquery() + local retval = self.model.getnewadhocquery(self, self.clientdata) self.handle_clientdata(retval, self.clientdata) - retval = self.model.adhocquery(retval) + retval = self.model.adhocquery(self, retval) local file = cfe({ type="longtext", value="", label="weblogadhocquery.tab" }) if retval.value.result and #retval.value.result.value > 0 then -- cgit v1.2.3