Skip to content

Commit

Permalink
[CHORE] I flipped em
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Sep 16, 2024
1 parent abf9fe4 commit d8ef82d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edu.harvard.dbmi.avillach.dictionary.dashboard;

public record DashboardColumn(String label, String dataElement) {
public record DashboardColumn(String dataElement, String label) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dataset_meta.KEY IN (:keys)
ORDER BY name ASC, abbreviation ASC
""";
List<String> keys = columns.stream()
.map(DashboardColumn::label)
.map(DashboardColumn::dataElement)
.filter(Predicate.not(nonMetaColumns::contains))
.toList();
MapSqlParameterSource params = new MapSqlParameterSource().addValue("keys", keys);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public List<Map<String, String>> extractData(ResultSet rs) throws SQLException,
String name = rs.getString("name");
if (!currentRow.equals(name + abbreviation)) {
currentRow = name + abbreviation;
if (!row.isEmpty()) {
if (!row.equals(template)) {
row.put("abbreviation", abbreviation);
row.put("name", name);
rows.add(row);
Expand Down

0 comments on commit d8ef82d

Please sign in to comment.