removed filter to get all tenders - bug fix

This commit is contained in:
Mazyar
2026-05-04 05:28:56 +03:30
parent 446c11dfbf
commit 086fe0ffd5
7 changed files with 31 additions and 20 deletions
+8
View File
@@ -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