From 0d00d1e63a1f5d5980e365bf2723672139be1190 Mon Sep 17 00:00:00 2001 From: lxsang Date: Tue, 11 Jun 2019 18:35:34 +0200 Subject: [PATCH] update porfolio --- info/controllers/IndexController.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info/controllers/IndexController.lua b/info/controllers/IndexController.lua index b8abdcb..bff7ae5 100644 --- a/info/controllers/IndexController.lua +++ b/info/controllers/IndexController.lua @@ -7,7 +7,7 @@ BaseController:subclass( ) local sectionsByCid = function(db, id) - local cond = {exp = {["="] = {cid = id}}, order = {start = "DESC"}} + local cond = {exp = { ["and"] = {{["="] = {cid = id}}, {["= "] = {publish = 1}} }}, order = {start = "DESC"}} local data, a = db:find(cond) return data, a end