From 0602ad60001024ce035ead27aa3543b614cbd1b0 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 16 May 2026 23:39:02 +0100 Subject: [PATCH] bluemaestro: fix for crashing when _meta table is missing --- src/my/bluemaestro.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/my/bluemaestro.py b/src/my/bluemaestro.py index 8439a62d..c531c054 100644 --- a/src/my/bluemaestro.py +++ b/src/my/bluemaestro.py @@ -145,7 +145,8 @@ def measurements() -> Iterable[Res[Measurement]]: processed_tables |= set(log_tables) # todo use later? - _frequencies = [list(db.execute(f'SELECT interval from {t.replace("_log", "_meta")}'))[0][0] for t in log_tables] # noqa: RUF015 + # TODO hmm the meta table was missing in 20260516134356/bmgateway.db file + # _frequencies = [list(db.execute(f'SELECT interval from {t.replace("_log", "_meta")}'))[0][0] for t in log_tables] # todo could just filter out the older datapoints?? dunno.