From 04bf09ae5a5f50c6dad5102358654543987d4b8f Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 21 May 2025 11:58:29 +0200 Subject: [PATCH] add db.has_local this is True on instruments --- seinflux.py | 1 + 1 file changed, 1 insertion(+) diff --git a/seinflux.py b/seinflux.py index 7c04e48..5c0b5d7 100644 --- a/seinflux.py +++ b/seinflux.py @@ -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)