From bb9a681fdafe7e0541a82b30472b9c1dd5dc7a6b Mon Sep 17 00:00:00 2001 From: Om Bhardwaj <115864495+ombhardwajj@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:01:50 +0530 Subject: [PATCH] avniproject#762 | Minor fix when checking for tables --- .../java/org/avni/server/service/metabase/DatabaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avni-server-api/src/main/java/org/avni/server/service/metabase/DatabaseService.java b/avni-server-api/src/main/java/org/avni/server/service/metabase/DatabaseService.java index 5ac6cd9ec..ec72c9a74 100644 --- a/avni-server-api/src/main/java/org/avni/server/service/metabase/DatabaseService.java +++ b/avni-server-api/src/main/java/org/avni/server/service/metabase/DatabaseService.java @@ -259,7 +259,7 @@ public void createQuestionsForProgramsAndEncounters() { for (String programName : programNames) { for (String tableName : allTableNames) { - if (tableName.contains(programName)) { + if (tableName.equalsIgnoreCase(programName)) { createQuestionForTable(tableName, "Address", "id", "address_id"); } }