]> git.parisson.com Git - teleforma.git/commitdiff
fix import, cleanup
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 19 Jan 2023 13:36:56 +0000 (14:36 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 19 Jan 2023 13:36:56 +0000 (14:36 +0100)
teleforma/models/core.py
teleforma/views/core.py

index 3315dafd5c3bf1224c64446be629db210739ee19..7c717976158f7654f7b403765aa9146b9e5b01b5 100755 (executable)
@@ -462,6 +462,7 @@ class Conference(models.Model):
             if settings.DEBUG:
                 requests.post(f"{settings.CHANNEL_URL}{reverse('teleforma-live-conference-notify')}", {'id': self.id})
             else:
+                import httpx
                 transport = httpx.HTTPTransport(uds=settings.CHANNEL_URL)
                 client = httpx.Client(transport=transport)
                 response = client.post(f"http://{reverse('teleforma-live-conference-notify')}",
index a718aa68d8fdf86f8fd75121df8a0542504577ce..985c912e4384ad4c6546ca28e006e863bd493394 100644 (file)
@@ -62,10 +62,6 @@ from jsonrpc import jsonrpc_method
 from jsonrpc.proxy import ServiceProxy
 from rest_framework.permissions import IsAuthenticated
 from rest_framework.response import Response
-# The fact that you are presently reading this means that you have had
-# knowledge of the CeCILL license and that you accept its terms.
-#
-# Authors: Guillaume Pellerin <yomguy@parisson.com>
 from rest_framework.views import APIView
 from teleforma.models.crfpa import Home, Student, Training
 from teleforma.models.notification import Notification, notify