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:
+1
-1
@@ -1216,7 +1216,7 @@ func (s *TEDScraper) generateTenderID(t *tender.Tender) string {
|
|||||||
parts = append(parts, s.padOrTruncate(s.unixMilliToDateString(t.IssueDate), 4))
|
parts = append(parts, s.padOrTruncate(s.unixMilliToDateString(t.IssueDate), 4))
|
||||||
|
|
||||||
// Location code (country code + region code, padded to 6 chars)
|
// Location code (country code + region code, padded to 6 chars)
|
||||||
locationCode := "EURO"
|
locationCode := "EU"
|
||||||
if t.CountryCode != "" {
|
if t.CountryCode != "" {
|
||||||
locationCode = t.CountryCode
|
locationCode = t.CountryCode
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user