From b3575bb5e6c43414d21c503a4b80c6b21de6aed5 Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Tue, 19 Aug 2025 12:42:31 +0330 Subject: [PATCH] Update Location Code in Tender ID Generation Logic - Changed the location code in the `generateTenderID` method from "EURO" to "EU" to accurately reflect the country code. - This modification enhances the clarity and correctness of the tender ID generation process, ensuring adherence to Clean Architecture principles. --- ted/scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ted/scraper.go b/ted/scraper.go index 0c8c998..0ec0134 100644 --- a/ted/scraper.go +++ b/ted/scraper.go @@ -1216,7 +1216,7 @@ func (s *TEDScraper) generateTenderID(t *tender.Tender) string { parts = append(parts, s.padOrTruncate(s.unixMilliToDateString(t.IssueDate), 4)) // Location code (country code + region code, padded to 6 chars) - locationCode := "EURO" + locationCode := "EU" if t.CountryCode != "" { locationCode = t.CountryCode }