Skip to content

Commit

Permalink
Update subject.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FDT2k committed May 13, 2024
1 parent 6668533 commit 8f87342
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/electron/src/db/model/subject.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,12 @@ const subject = (db, api) => {
return val;
}
const retrieve_csv_row = (row, columns) => {
console.log(columns);
return columns.reduce(
(carry, col, idx) => {
if(col.name == 'diag'){
return carry;
}
if (!is_nil(csv_json_map[col.name])) {

let __columns = enlist(extract_object(row[idx], csv_json_map[col.name], false));
Expand All @@ -493,6 +497,9 @@ const subject = (db, api) => {
const retrieve_csv_cols = (row, columns) => {
return columns.reduce(
(carry, col, idx) => {
if(col.name == 'diag'){
return carry;
}
if (!is_nil(csv_json_map[col.name])) {

let __columns = enlist(extract_columns(csv_json_map[col.name]));
Expand Down

0 comments on commit 8f87342

Please sign in to comment.