changeset 1456:4cc4f08a94e1

minor fix
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 09 Mar 2020 15:48:53 -0600
parents 1437fb1f0956
children a84ce37f3892
files src/luan/modules/lucene/Web_search.luan
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/Web_search.luan	Sun Mar 08 16:50:14 2020 -0600
+++ b/src/luan/modules/lucene/Web_search.luan	Mon Mar 09 15:48:53 2020 -0600
@@ -117,7 +117,6 @@
 		row.doc = doc
 		table[#table+1] = row
 	end
-	local can_edit = index.completer ~= nil
 %>
 <!doctype html>
 <html>
@@ -154,11 +153,7 @@
 %>
 				<tr>
 					<td>
-<%					if can_edit and id~=nil then %>
 						<a href="?id=<%=id%>"><%=i%></a>
-<%					else %>
-						<%=i%>
-<%					end %>
 					</td>
 <%
 					for col in range(1, #headers) do
@@ -208,8 +203,6 @@
 		local id = Http.request.parameters.id
 		index.delete("id:"..id)
 	else
-		local completer = index.completer or error()
-		doc = completer(doc)
 		index.save(doc)
 	end
 %>