Skip to content

Commit fcaffed

Browse files
authored
service: Fix request_body type(#4)
Previously, we introduced a bug where the type of the `request_body` in the `_get_matcher_from_semantic_id` function was cast to a `Dict`, while already being a `Dict`. This fixes this oversight by removing the cast.
1 parent 0df65cc commit fcaffed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

semantic_matcher/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _get_matcher_from_semantic_id(self, semantic_id: str) -> str:
138138
endpoint = config['RESOLVER']['endpoint']
139139
port = config['RESOLVER'].getint('port')
140140
url = f"{endpoint}:{port}/get_semantic_matching_service"
141-
response = requests.get(url, json=request_body.dict())
141+
response = requests.get(url, json=request_body)
142142

143143
# Check if the response is successful (status code 200)
144144
if response.status_code == 200:

0 commit comments

Comments
 (0)