Skip to content

Commit

Permalink
Fixed error in get metadata and stop process.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisingulani committed Dec 10, 2024
1 parent bfb4078 commit a61e703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pzserver/communicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def get_main_file_info(self, _id, column_association=True) -> dict:

if column_association:
assoc = self._get_request(
f"{self._base_api_url}product-contents?product={_id}",
f"{self._base_api_url}product-contents/?product={_id}",
)
if assoc.get("success", False):
data["columns_association"] = assoc.get("data").get("results")
Expand Down Expand Up @@ -675,7 +675,7 @@ def stop_process(self, process_id):
process_id (int): process ID
"""

data = self._get_request(f"{self._base_api_url}processes/{process_id}/stop")
data = self._get_request(f"{self._base_api_url}processes/{process_id}/stop/")

if "success" in data and data["success"] is False:
raise requests.exceptions.RequestException(data["message"])
Expand Down

0 comments on commit a61e703

Please sign in to comment.