Skip to content

Commit

Permalink
fix nullable uplaod
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 8, 2024
1 parent 97386ac commit 49ebc89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/src/decentriq.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def get_cohort_schema(cohort_dict: Cohort) -> list[Column]:
prim_type = FormatType.FLOAT
if variable_info.var_type == "INT":
prim_type = FormatType.INTEGER
nullable = bool(variable_info.na != 0)
# If we want to get na from data dictionary (removed for demo)
# nullable = bool(variable_info.na != 0)

schema.append(Column(name=variable_id, format_type=prim_type, is_nullable=nullable))
# schema.append((variable_id, prim_type, nullable))
schema.append(Column(name=variable_id, format_type=prim_type, is_nullable=True))
return schema


Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default function UploadPage() {
const handleMetadataFileChange = (event: any) => {
setMetadataFile(event.target.files[0]);
};
const handleDataFilesChange = (event: any) => {
setDataFile(event.target.files[0]);
};
// const handleDataFilesChange = (event: any) => {
// setDataFile(event.target.files[0]);
// };

// Function to clear metadata file
const clearMetadataFile = () => {
Expand Down

0 comments on commit 49ebc89

Please sign in to comment.