add db.has_local
this is True on instruments
This commit is contained in:
@ -41,6 +41,7 @@ class SEHistory(InfluxDBWrapper):
|
|||||||
parser.optionxform = str
|
parser.optionxform = str
|
||||||
parser.read([Path('~/.config/sehistory').expanduser()])
|
parser.read([Path('~/.config/sehistory').expanduser()])
|
||||||
section = parser[dbname] if dbname else parser[parser.sections()[0]]
|
section = parser[dbname] if dbname else parser[parser.sections()[0]]
|
||||||
|
self.has_local = parser.has_section('local')
|
||||||
self.instrument_by_stream = {}
|
self.instrument_by_stream = {}
|
||||||
super().__init__(*(section[k] for k in ('uri', 'token', 'org', 'bucket')), access=access)
|
super().__init__(*(section[k] for k in ('uri', 'token', 'org', 'bucket')), access=access)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user