From 9bf217986e47c2e141b2535c784cdce169e63d32 Mon Sep 17 00:00:00 2001 From: Philipp Kilian Date: Thu, 28 Sep 2023 11:28:52 +0200 Subject: [PATCH] records: use records instead of empty variabel --- b3lb/rest/classes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b3lb/rest/classes/api.py b/b3lb/rest/classes/api.py index 9a7c9da..65c0dfd 100644 --- a/b3lb/rest/classes/api.py +++ b/b3lb/rest/classes/api.py @@ -120,7 +120,7 @@ async def get_recordings(self) -> HttpResponse: for meeting_id in self.meeting_id.split(","): records = await sync_to_async(self.get_recording_dicts)(records, meeting_id=meeting_id) else: - records = await sync_to_async(self.get_recording_dicts)([]) + records = await sync_to_async(self.get_recording_dicts)(records) if records: return HttpResponse(render_to_string(template_name="getRecordings.xml", context={"records": records}), content_type=cst.CONTENT_TYPE)