Skip to content

Commit

Permalink
Only clean one non pv per day
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jun 7, 2024
1 parent 5913842 commit f17eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordcleanerapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (s *Server) GetClean(ctx context.Context, req *pb.GetCleanRequest) (*pb.Get
return nil, err
}
if rec.GetRecord().GetMetadata().GetDateArrived() > 0 && rec.Record.GetMetadata().GetLastCleanDate() == 0 && rec.GetRecord().Metadata.GetGoalFolder() != 1782105 {
if config.GetNonPreValidateClean() < 3 || rec.GetRecord().GetMetadata().GetCategory() == rcpb.ReleaseMetadata_PRE_VALIDATE {
if config.GetNonPreValidateClean() < 1 || rec.GetRecord().GetMetadata().GetCategory() == rcpb.ReleaseMetadata_PRE_VALIDATE {
valids = append(valids, id)
}
}
Expand Down

0 comments on commit f17eb44

Please sign in to comment.