Skip to content

Commit

Permalink
fix mappedId
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 22, 2024
1 parent 7c5f534 commit b76a5c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/src/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/VariablesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b76a5c1

Please sign in to comment.