Skip to content

AttributeError: 'AITDBResult' object has no attribute 'get_points' #258

@rachaelacollins

Description

@rachaelacollins

Description

 Traceback (most recent call last):
   File "/home/ait/.local/lib/python3.10/site-packages/bottle.py", line 876, in _handle
     return route.call(**args)
   File "/home/ait/.local/lib/python3.10/site-packages/bottle.py", line 1756, in wrapper
     rv = callback(*a, **ka)
   File "/home/ait/.local/lib/python3.10/site-packages/ait/gui/__init__.py", line 1286, in handle_playback_range_get
    packets = list(playback.dbconn.query("SHOW MEASUREMENTS").get_points())
 AttributeError: 'AITDBResult' object has no attribute 'get_points'

Versions

  • ait-core: 2.5.0
  • ait-gui: 2.4.1
  • influxdb: 5.3.1

Fix

Add .results before all uses of .get_points() to return ResultSet, e.g.:

list(playback.dbconn.query("SHOW MEASUREMENTS").results.get_points())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions