FrancisGOS commited on
Commit
a665d9d
·
1 Parent(s): 6a31895

Fix Compare ai

Browse files
app/domains/chat_message/service.py CHANGED
@@ -114,7 +114,7 @@ class ChatMessageService(SQLAlchemyAsyncRepositoryService[ChatMessage]):
114
  if "Compare" in hashtags:
115
  if len(uuid_list) <= 1:
116
  raise ValidationException("Not enough property to compare")
117
- properties = await property_service.list(Property.id in uuid_list)
118
  if len(properties) < 2:
119
  raise ValidationException("Not enough valid property to compare")
120
  return self.compare_properties_with_gemini(properties, data.content)
 
114
  if "Compare" in hashtags:
115
  if len(uuid_list) <= 1:
116
  raise ValidationException("Not enough property to compare")
117
+ properties = await property_service.list(Property.id.in_(uuid_list))
118
  if len(properties) < 2:
119
  raise ValidationException("Not enough valid property to compare")
120
  return self.compare_properties_with_gemini(properties, data.content)