URL is now column 4

Tue, 03 Mar 2015 12:10:18 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 03 Mar 2015 12:10:18 +0000
changeset 7
95ab32c0a1ff
parent 6
39716bd98da1
child 8
1ddc6c64e4b3

URL is now column 4

parse.lua file | annotate | diff | comparison | revisions
--- a/parse.lua	Tue Mar 03 12:10:05 2015 +0000
+++ b/parse.lua	Tue Mar 03 12:10:18 2015 +0000
@@ -8,7 +8,7 @@
 for line in io.lines(arg[1] or "gsoc15.csv") do
 	local project = {};
 	csv.read_record(line, function (v) project[#project+1] = v; end);
-	local url = project[5] and project[5]:match("https?://[^\"]+");
+	local url = project[4] and project[4]:match("https?://[^\"]+");
 	if url and url:match("^http"..(have_https and "s?" or "")..":") then
 		local data, err = http.request(url);
 		if not data then

mercurial