From 17331b312d765d5e0aa932db55265625839c9335 Mon Sep 17 00:00:00 2001 From: timo Date: Mon, 25 Mar 2024 16:33:45 +0100 Subject: [PATCH] Fix #128 Upgrading xmltodict from 0.12 to 0.13 dropped OrderedDict support and broke filtering for this type. This is a fix. --- bbb-exporter/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbb-exporter/api.py b/bbb-exporter/api.py index e8ab6fd..a968ea9 100644 --- a/bbb-exporter/api.py +++ b/bbb-exporter/api.py @@ -29,7 +29,7 @@ def get_meetings(): response = [] for meeting in meetings: - if type(meeting) != OrderedDict: + if not isinstance(meeting, dict): continue response.append(meeting) @@ -66,7 +66,7 @@ def get_recordings(state: str): response = [] for recording in recordings: - if type(recording) != OrderedDict: + if not isinstance(recording, dict): continue response.append(recording)