CHANGES : filter files : GWM
This commit is contained in:
parent
a67071c873
commit
bc78690606
3
main.go
3
main.go
@ -221,6 +221,7 @@ func fetchfilterJSON(kpi string) ([]FilterGroup, error) {
|
||||
FilterKeys string `db:"filter_keys" json:"filter_keys"`
|
||||
FileStatus bool `db:"file_status" json:"file_status"`
|
||||
DataSet string `db:"dataset" json:"dataset"`
|
||||
Kpi string `db:"Kpi" json:"Kpi"`
|
||||
}
|
||||
|
||||
// Query to get one row from the data_set_filter table
|
||||
@ -237,7 +238,7 @@ func fetchfilterJSON(kpi string) ([]FilterGroup, error) {
|
||||
|
||||
// Fetch and convert XML to JSON if file is not saved
|
||||
if !dataSetFilter.FileStatus { // Check if FileStatus is false
|
||||
_, err := fetchAndConvertXMLToJSON(dataSetFilter.FullDataUrl, "filter_files", dataSetFilter.DataSet, "data_set_filter", dataSetFilter.Id)
|
||||
_, err := fetchAndConvertXMLToJSON(dataSetFilter.FullDataUrl, "filter_files", dataSetFilter.Kpi, "data_set_filter", dataSetFilter.Id)
|
||||
if err != nil {
|
||||
log.Printf("Failed to process URL '%s': %v", dataSetFilter.FullDataUrl, err)
|
||||
return nil, err
|
||||
|
||||
BIN
pb_data/data.db
BIN
pb_data/data.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pb_data/logs.db
BIN
pb_data/logs.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user