7211847c125c — russes02 10 years ago
Ignore pages that have a migration failure code of 0 when generating the site report
1 files changed, 8 insertions(+), 6 deletions(-)

M scripts/mksites
M scripts/mksites +8 -6
@@ 11,13 11,15 @@ for line in STDIN
 	id=cols[0,4].join(",")
 	ok=cols[7]
 	o,n,v,*r = ok.split
-	@migration[id] = true if ok =~ /MIGRATION/
-	if @id[id].nil? or @id[id] < v.to_f and @okfail[id] != "FAIL"
-		@okfail[id] = o
-		@id[id] = v.to_f
+	if ok !~ /MIGRATION 0/
+		@migration[id] = true if ok =~ /MIGRATION/
+		if @id[id].nil? or @id[id] < v.to_f and @okfail[id] != "FAIL"
+			@okfail[id] = o
+			@id[id] = v.to_f
+		end
+		tf = cols[8].chop == "true"
+		@link[id] = @link[id].nil? ? tf : @link[id] & tf
 	end
-	tf = cols[8].chop == "true"
-	@link[id] = @link[id].nil? ? tf : @link[id] & tf
 end
 
 puts "ID,Ad ID,Subdomain,Domain1,OK,NRMSD,Links OK"