run through pages if status is 1 even though last column is empty
1 files changed, 43 insertions(+), 43 deletions(-)

M multisites.go
M multisites.go +43 -43
@@ 1,43 1,43 @@ 
-package autocompare
-
-import (
-	"encoding/csv"
-	"io"
-	"log"
-)
-
-type MultiSites struct {
-	*csv.Reader
-	*SitesBase
-}
-
-func (s *MultiSites) CheckLinks() bool {
-	return true
-}
-
-func (s *MultiSites) NextPage() Page {
-	line, err := s.Read()
-	if err == io.EOF {
-		return nil
-	}
-	var state int
-	var message string
-	if len(line) < 12 {
-		if len(line) < 11 {
-			log.Printf("bad input data: %v", line)
-			return s.NextPage()
-		} else {
-			s.counts[line[5]]++
-			state = PANIC
-			message = "MIGRATION " + line[5]
-		}
-	} else if line[5] == "1" && line[11] != "" {
-		s.processed++
-		state = NEW
-	} else {
-		s.counts[line[5]]++
-		state = PANIC
-		message = "MIGRATION " + line[5]
-	}
-	return &BasePage{attempts: 0, subdomain: line[3], domain1: line[4], origPath: line[7], path: line[8], adID: line[6], origImg: "", copyImg: "", state: state, id: line[2], message: message, baseURL: s.baseURL, uat: s.uat, useDomain1: s.useDomain1}
-}
+package autocompare
+
+import (
+	"encoding/csv"
+	"io"
+	"log"
+)
+
+type MultiSites struct {
+	*csv.Reader
+	*SitesBase
+}
+
+func (s *MultiSites) CheckLinks() bool {
+	return true
+}
+
+func (s *MultiSites) NextPage() Page {
+	line, err := s.Read()
+	if err == io.EOF {
+		return nil
+	}
+	var state int
+	var message string
+	if len(line) < 12 {
+		if len(line) < 11 {
+			log.Printf("bad input data: %v", line)
+			return s.NextPage()
+		} else {
+			s.counts[line[5]]++
+			state = PANIC
+			message = "MIGRATION " + line[5]
+		}
+	} else if line[5] == "1" {
+		s.processed++
+		state = NEW
+	} else {
+		s.counts[line[5]]++
+		state = PANIC
+		message = "MIGRATION " + line[5]
+	}
+	return &BasePage{attempts: 0, subdomain: line[3], domain1: line[4], origPath: line[7], path: line[8], adID: line[6], origImg: "", copyImg: "", state: state, id: line[2], message: message, baseURL: s.baseURL, uat: s.uat, useDomain1: s.useDomain1}
+}