Spaces:
Build error
Build error
Download tecnicas/controllers/models_controller/catador_controller.py from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/controllers/models_controller/catador_controller.py
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/controllers/models_controller/catador_controller.py
-
curl -L -o catador_controller.py https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/controllers/models_controller/catador_controller.py
345 Bytes
| from ...models import Catador | |
| from ...utils import controller_error | |
| class CatadorController: | |
| def getTesterByUsername(username:str): | |
| try: | |
| tester = Catador.objects.get(usuarioCatador=username) | |
| return tester | |
| except Catador.DoesNotExist: | |
| return controller_error("No se encontró el Catador") | |