fix ai estimation
This commit is contained in:
parent
24738cf974
commit
91abde04a6
1 changed files with 2 additions and 6 deletions
|
|
@ -124,12 +124,8 @@ class EstimationService:
|
|||
response_json = response.json()
|
||||
print(f"AI DTQ Response: {response_json}")
|
||||
|
||||
if "insurable" in response_json:
|
||||
dtq = not response_json["message"]["insurable"]
|
||||
reason = response_json["message"]["reason"]
|
||||
else:
|
||||
dtq = False
|
||||
reason = ""
|
||||
return dtq, reason
|
||||
except Exception as e:
|
||||
print(f"Error in AI DTQ check: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue