add db.has_local

this is True on instruments
This commit is contained in:
2025-05-21 11:58:29 +02:00
parent 13987dedd3
commit 04bf09ae5a

View File

@ -41,6 +41,7 @@ class SEHistory(InfluxDBWrapper):
parser.optionxform = str
parser.read([Path('~/.config/sehistory').expanduser()])
section = parser[dbname] if dbname else parser[parser.sections()[0]]
self.has_local = parser.has_section('local')
self.instrument_by_stream = {}
super().__init__(*(section[k] for k in ('uri', 'token', 'org', 'bucket')), access=access)