Commit b0d1ce2d authored by Jo Sama's avatar Jo Sama 😱
Browse files

Use correct headers in get_prosjekter()

parent a9dcd5e5
Pipeline #48705 failed with stage
in 2 minutes and 40 seconds
......@@ -500,7 +500,7 @@ class UBWClient:
def get_prosjekter(self, company_id: str) -> typing.List[models.Prosjekt]:
url = self.urls.get_prosjekter(company_id)
headers = self.config.rest.endpoints.begreper.headers
headers = self.config.rest.endpoints.project.headers
r = self.get(url, headers=headers)
return [models.Prosjekt.from_dict(x) for x in r]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment