Spaces:
Build error
Build error
File size: 345 Bytes
b417c45 | 1 2 3 4 5 6 7 8 9 10 11 | 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")
|