Card file : GWM
This commit is contained in:
parent
85104c3e4d
commit
fdf1166261
14
main.go
14
main.go
@ -486,6 +486,19 @@ func main() {
|
||||
|
||||
cRes := utils.ProcessChartData(chartData, languageSourceConverted, langKey)
|
||||
|
||||
var logoURL string
|
||||
cardLogo := record.GetString("card_logo")
|
||||
|
||||
if cardLogo == "" {
|
||||
logoURL = ""
|
||||
} else {
|
||||
logoURL = fmt.Sprintf("%s/api/files/charts/%s/%s",
|
||||
baseUrl,
|
||||
record.GetString("id"),
|
||||
cardLogo,
|
||||
)
|
||||
}
|
||||
|
||||
chartHeadingKey := "chart_heading_" + language
|
||||
tabHeadingKey := "tab_heading_" + language
|
||||
// Prepare the structure with URL and its response
|
||||
@ -502,6 +515,7 @@ func main() {
|
||||
"chart_heading": record.GetString(chartHeadingKey),
|
||||
"tab_heading": record.GetString(tabHeadingKey),
|
||||
"unset_value": record.Get("unset_value"),
|
||||
"card_logo": logoURL,
|
||||
}
|
||||
|
||||
// Add the result to the aggregated response
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
@ -0,0 +1 @@
|
||||
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":{"original-filename":"averageLengthOfStay.png"},"md5":"/wPtLtddRDkeFZxAQTJM/g=="}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
@ -0,0 +1 @@
|
||||
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":null,"md5":"wm5GWTiDEeBU/0WxUDPNLQ=="}
|
||||
Loading…
Reference in New Issue
Block a user