Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion influxdb/influxdb08/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __new__(cls, *args, **kwargs):
if cls._autocommit and not cls._client:
raise AttributeError(
'In {0}, autocommit is set to True, but no client is set.'
.format(cls.__name__))
.format(cls.__name__))

try:
cls._bulk_size = getattr(_meta, 'bulk_size')
Expand Down Expand Up @@ -128,6 +128,10 @@ def commit(cls, client=None):
"""
if not client:
client = cls._client

if not cls._datapoints:
cls._datapoints = defaultdict(list)

rtn = client.write_points(cls._json_body_())
cls._reset_()
return rtn
Expand Down