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.
This commit is contained in:
n.nakhostin
2025-08-19 12:42:31 +03:30
parent 2ffba3aa32
commit b3575bb5e6
+1 -1
View File
@@ -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
}