diff --git a/backend/src/auth.py b/backend/src/auth.py index 30be6b6..39e691b 100644 --- a/backend/src/auth.py +++ b/backend/src/auth.py @@ -120,7 +120,7 @@ async def auth_callback(code: str) -> RedirectResponse: if ( "https://explorer.icare4cvd.eu" in access_payload["aud"] - # and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"] + and "read:icare4cvd-dataset-descriptions" in access_payload["permissions"] ): user_email = id_payload["email"] # Reuse expiration time from decentriq Auth0 access token diff --git a/backend/src/explore.py b/backend/src/explore.py index 5815e12..2b6ea01 100644 --- a/backend/src/explore.py +++ b/backend/src/explore.py @@ -126,7 +126,7 @@ async def search_concepts( # TODO also get mappings from categories? # print(sparql_query) for row in run_query(sparql_query)["results"]["bindings"]: - print(row) + # print(row) # Find the concept in the list and add the cohort and variable to the used_by list for concept in found_concepts: if concept["uri"] == row["mappedId"]["value"]: diff --git a/frontend/src/components/VariablesList.tsx b/frontend/src/components/VariablesList.tsx index ff8b0ce..e86baf1 100644 --- a/frontend/src/components/VariablesList.tsx +++ b/frontend/src/components/VariablesList.tsx @@ -23,7 +23,7 @@ const VariablesList = ({cohortId, searchFilters = {searchQuery: ''}}: any) => { const formData = new FormData(); formData.append('cohort_id', cohortId); formData.append('var_id', varId); - formData.append('predicate', 'icare:mapped_id'); + formData.append('predicate', 'icare:mappedId'); formData.append('value', concept.id); formData.append('label', concept.label); if (categoryId !== null) {