Skip to content

Commit 3e3f4c0

Browse files
authored
Merge pull request #80 from datakind/Validation-Errors
adjusted validation files
2 parents b51b4a8 + a427bd5 commit 3e3f4c0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/webapp/routers/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def validation_helper(
913913
return {
914914
"name": file_name,
915915
"inst_id": inst_id,
916-
"file_types": inferred_schemas,
916+
"file_types": list(inferred_schemas),
917917
"source": source_str,
918918
}
919919

src/worker/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def process_file(
144144
f"<<<< ???? Skipping {inst_id} due to upload URL fetch error: {upload_url}"
145145
)
146146
uploads[str(ids)] = {
147-
"institution_id": temp_valid_inst_ids[ids],
147+
"institution_id": inst_id,
148148
"file_name": signed_urls[ids]["file_name"],
149149
"transfer_status": "upload_url_fetch_failed",
150150
"validation_status": None,
@@ -168,7 +168,7 @@ async def process_file(
168168
)
169169

170170
uploads[str(ids)] = {
171-
"institution_id": temp_valid_inst_ids[ids],
171+
"institution_id": inst_id,
172172
"file_name": signed_urls[ids]["file_name"].strip().strip('"'),
173173
"transfer_status": (
174174
transfer_status.strip()

0 commit comments

Comments
 (0)