Skip to content

Commit

Permalink
fix: orglogo url
Browse files Browse the repository at this point in the history
  • Loading branch information
terjesyl committed May 16, 2024
1 parent d9a50a9 commit f1bae44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/fdk_organization_bff/utils/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def map_org_details(
homepage=str(homepage) if homepage else None,
seeAlso=see_also,
numberOfEmployees=number_of_employees if number_of_employees else None,
icon=f"https://orglogo.difi.no/api/logo/org/{org_id}",
icon=f"https://orglogo.digdir.no/api/logo/org/{org_id}",
)
else:
return None
Expand Down
12 changes: 6 additions & 6 deletions tests/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"homepage": null,
"seeAlso": null,
"numberOfEmployees": null,
"icon": "https://orglogo.difi.no/api/logo/org/910244132"
"icon": "https://orglogo.digdir.no/api/logo/org/910244132"
},
"datasets": {
"totalCount": 71,
Expand Down Expand Up @@ -54,7 +54,7 @@
"homepage": null,
"seeAlso": null,
"numberOfEmployees": null,
"icon": "https://orglogo.difi.no/api/logo/org/910244132"
"icon": "https://orglogo.digdir.no/api/logo/org/910244132"
},
"datasets": {
"totalCount": 71,
Expand Down Expand Up @@ -91,7 +91,7 @@
"homepage": "www.fiskeridir.no/",
"seeAlso": "https://data.brreg.no/enhetsregisteret/oppslag/enheter/971203420",
"numberOfEmployees": 222,
"icon": "https://orglogo.difi.no/api/logo/org/971203420"
"icon": "https://orglogo.digdir.no/api/logo/org/971203420"
},
"datasets": {
"totalCount": 0,
Expand Down Expand Up @@ -215,7 +215,7 @@
"homepage": null,
"seeAlso": null,
"numberOfEmployees": null,
"icon": "https://orglogo.difi.no/api/logo/org/910244132"
"icon": "https://orglogo.digdir.no/api/logo/org/910244132"
},
"datasets": {
"totalCount": 7,
Expand Down Expand Up @@ -247,7 +247,7 @@
"name": "NORGES TEKNISK-NATURVITENSKAPELIGE UNIVERSITET NTNU",
"orgType": null,
"orgPath": "/STAT/872417842/974767880",
"icon": "https://orglogo.difi.no/api/logo/org/974767880",
"icon": "https://orglogo.digdir.no/api/logo/org/974767880",
"industryCode": null,
"homepage": null,
"seeAlso": null,
Expand Down Expand Up @@ -333,7 +333,7 @@
"homepage": null,
"seeAlso": null,
"numberOfEmployees": null,
"icon": "https://orglogo.difi.no/api/logo/org/910298062"
"icon": "https://orglogo.digdir.no/api/logo/org/910298062"
},
"datasets": {
"totalCount": 0,
Expand Down

0 comments on commit f1bae44

Please sign in to comment.