]> git.parisson.com Git - teleforma.git/commitdiff
Fix webclass record : https://trackers.pilotsystems.net/prebarreau/0838
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 11 Jul 2024 07:57:03 +0000 (09:57 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 11 Jul 2024 07:57:03 +0000 (09:57 +0200)
teleforma/views/core.py

index 58be53a3a306a523c8ac2f9995309e8fad0a9c14..15b4f9ad4998a90792e04a185a54b3ce51f21d68 100644 (file)
@@ -503,7 +503,7 @@ class CourseView(CourseAccessMixin, DetailView):
 
         try:
             context['webclass_records'] = WebclassRecord.get_records(
-                context['period'], course)
+                context['period'], course).get('WC', [])
         except Exception as e:
             print(e)
             context['webclass_error'] = True