Skip to content

average not working correctly in the results block #17

@luisremis

Description

@luisremis

Average not being showed on the response:

To reproduce:

import vdms

db = vdms.VDMS()
db.connect("localhost")

#Get information about all the patients
query = """
[
   {
      "AddEntity" : {
         "class" : "doctor",
         "properties": {
             "name": "Mark",
             "age": 10, 
             "speciality": "brains"
         }
      }
   }
]   
"""
response, images = db.query(query)
vdms.aux_print_json(str(response))
    
query2 = """
[
   {
      "FindEntity" : {
         "class" : "doctor",
         "constraints": {
             "age": [">=", 4]
         }, 
         "results": {
             "list": ["name", "age"],
             "average": ["age"]
         }
      }
   }
]   
"""

response, images = db.query(query2)
vdms.aux_print_json(str(response))

Metadata

Metadata

Labels

EnhancementNew features or upgrades for functionality, performance, etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions