Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Moinat committed Jan 8, 2019
2 parents 3e7f045 + 5bda193 commit 06ea0fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/org/ohdsi/whiteRabbit/scan/SourceDataScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,15 @@ private void generateReport(Map<String, List<FieldInfo>> tableToFieldInfos, Stri

// Create per table sheets
for (String table : tables) {
sheet = workbook.createSheet(table);
String sheetname = table.substring(0, Math.min(table.length(), 31));
sheetname = sheetname.replace('/','_');

if (workbook.getSheet(sheetname) != null) {
System.out.println("Worksheet already exists in the scan report, the current table is skipped: " + sheetname);
continue;
}

sheet = workbook.createSheet(sheetname);
List<FieldInfo> fieldInfos = tableToFieldInfos.get(table);
List<List<Pair<String, Integer>>> valueCounts = new ArrayList<List<Pair<String, Integer>>>();
Object[] header = new Object[fieldInfos.size() * 2];
Expand Down

0 comments on commit 06ea0fb

Please sign in to comment.