Skip to content
Snippets Groups Projects
Commit c3a505bd authored by Abdulsamad Sheikh's avatar Abdulsamad Sheikh :cat2:
Browse files

Error with iso

parent 436fa000
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ func ReadershipHandler(w http.ResponseWriter, r *http.Request) { ...@@ -78,7 +78,7 @@ func ReadershipHandler(w http.ResponseWriter, r *http.Request) {
readershipDetail := models.ReadershipDetail{ readershipDetail := models.ReadershipDetail{
Country: country.Official_Name, Country: country.Official_Name,
ISOCode: country.ISOCode, ISOCode: country.ISO3166_1_Alpha_2, // Corrected field access
Books: len(books.Results), Books: len(books.Results),
Authors: services.CalculateUniqueAuthors(books.Results), Authors: services.CalculateUniqueAuthors(books.Results),
Readership: population, Readership: population,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment