This commit is contained in:
Gowtham M 2025-01-25 17:07:24 +05:30
parent d28f35e045
commit b6d8c51394
4 changed files with 3435 additions and 3 deletions

3432
filter_files/divorces1.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -226,7 +226,7 @@ func fetchfilterJSON(kpi string) ([]FilterGroup, error) {
// Query to get one row from the data_set_filter table
err := app.DB().
Select("id", "full_data_url", "filter_keys", "file_status", "dataset").
Select("id", "full_data_url", "filter_keys", "file_status", "dataset", "kpi").
From("data_set_filter").
Where(dbx.HashExp{"kpi": kpi}).
One(&dataSetFilter)
@ -246,9 +246,9 @@ func fetchfilterJSON(kpi string) ([]FilterGroup, error) {
}
// Read the JSON data from the file
response, err := readJSONFromFile("filter_files", dataSetFilter.DataSet)
response, err := readJSONFromFile("filter_files", dataSetFilter.Kpi)
if err != nil {
log.Printf("Failed to read JSON for dataset '%s': %v", dataSetFilter.DataSet, err)
log.Printf("Failed to read JSON for Kpi filter '%s': %v", dataSetFilter.Kpi, err)
return nil, err
}

Binary file not shown.

Binary file not shown.