Skip to content

Commit

Permalink
fix airlock
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 11, 2024
1 parent 4ff898d commit 1d1663e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions backend/src/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def load_cohort_dict_file(dict_path: str, cohort_id: str, airlock: bool) -> Data
)
try:
df = pd.read_csv(dict_path)
# df = pd.read_csv(dict_path, encoding="utf-8")
df = df.dropna(how="all")
df = df.fillna("")
df.columns = df.columns.str.strip()
Expand Down Expand Up @@ -366,9 +365,7 @@ async def upload_cohort(
os.remove(metadata_path)
raise e

print("Cohort metadata uploaded successfully")
cohorts_dict = retrieve_cohorts_metadata(user["email"])
print("Cohort metadata retrieved successfully")
try:
dcr_data = create_provision_dcr(user, cohorts_dict.get(cohort_id))
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion backend/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_query(query: str) -> dict[str, Any]:
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT DISTINCT ?cohortId ?cohortInstitution ?cohortType ?cohortEmail ?study_type ?study_participants
?study_duration ?study_ongoing ?study_population ?study_objective
?study_duration ?study_ongoing ?study_population ?study_objective ?airlock
?variable ?varName ?varLabel ?varType ?index ?count ?na ?max ?min ?units ?formula ?definition
?omopDomain ?conceptId ?mappedId ?mappedLabel ?visits ?categoryValue ?categoryLabel ?categoryMappedId ?categoryMappedLabel
WHERE {
Expand Down

0 comments on commit 1d1663e

Please sign in to comment.