Spaces:
Build error
Build error
Download tecnicas/controllers/models_controller/presentador_controller.py from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/controllers/models_controller/presentador_controller.py
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/controllers/models_controller/presentador_controller.py
-
curl -L -o presentador_controller.py https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/controllers/models_controller/presentador_controller.py
398 Bytes
| from ...models import Presentador | |
| from ...utils import controller_error | |
| class PresentadorController(): | |
| def __init__(self): | |
| pass | |
| def getPresenterByUsername(username: str): | |
| try: | |
| presenter = Presentador.objects.get(nombre_usuario=username) | |
| except Presentador.DoesNotExist: | |
| return controller_error("Presentador inexistente") | |