Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 824a1b7

Browse files
authored
Making Time Precision optional
Changed it from required to optional
1 parent 2c9bd06 commit 824a1b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

influxdb/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __new__(cls, *args, **kwargs):
6565
'Missing Meta class in {0}.'.format(
6666
cls.__name__))
6767

68-
for attr in ['series_name', 'fields', 'tags','time_precision']:
68+
for attr in ['series_name', 'fields', 'tags']:
6969
try:
7070
setattr(cls, '_' + attr, getattr(_meta, attr))
7171
except AttributeError:
@@ -75,6 +75,7 @@ def __new__(cls, *args, **kwargs):
7575
cls.__name__))
7676

7777
cls._autocommit = getattr(_meta, 'autocommit', False)
78+
cls._time_precision = getattr(_meta,'time_precision',None)
7879

7980
cls._client = getattr(_meta, 'client', None)
8081
if cls._autocommit and not cls._client:

0 commit comments

Comments
 (0)