removed filter to get all tenders - bug fix
This commit is contained in:
@@ -321,6 +321,14 @@ func (s *TEDScraper) processXMLContent(ctx context.Context, content []byte, file
|
||||
|
||||
// Map to tender entity
|
||||
t := s.mapToTenderFromParsedDoc(notice, "", fileName)
|
||||
if t == nil {
|
||||
s.logger.Warn("Skipping document - mapper returned nil (unsupported or incomplete document)", map[string]interface{}{
|
||||
"file_name": fileName,
|
||||
"notice_id": id,
|
||||
"notice_type": noticeType,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
t.ContentXML = string(content)
|
||||
|
||||
// Check if tender already exists to prevent duplicates
|
||||
|
||||
Reference in New Issue
Block a user