Skip to content

Commit

Permalink
Updating fast_api output.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysrevans3 committed Feb 5, 2024
1 parent adc1070 commit c628c13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions stac_generator/plugins/outputs/stac_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def item(self, data: dict) -> None:
}

response = requests.post(
urljoin(self.api_url, f"collections"), json=collection, verify=self.verify
urljoin(self.api_url, "collections"), json=collection, verify=self.verify
)

response = requests.post(
Expand All @@ -107,11 +107,10 @@ def item(self, data: dict) -> None:

def collection(self, data: dict) -> None:

response = requests.update(
urljoin(self.api_url, f"collections"), json=data, verify=self.verify
response = requests.post(
urljoin(self.api_url, "collections"), json=data, verify=self.verify
)


def export(self, data: dict, **kwargs) -> None:

if kwargs['TYPE'].value == "item":
Expand Down

0 comments on commit c628c13

Please sign in to comment.