🔧 fix(base.py): fix comment indentation for better readability

🔧 fix(users.py): fix code formatting and indentation for better readability
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-31 11:27:45 -03:00
commit c7b500dd5c
2 changed files with 5 additions and 3 deletions

View file

@ -21,7 +21,7 @@ class FrontendNodeRequest(FrontendNode):
class ValidatePromptRequest(BaseModel):
name: str
template: str
#optional for tweak call
# optional for tweak call
frontend_node: Optional[FrontendNodeRequest]
@ -41,7 +41,7 @@ class CodeValidationResponse(BaseModel):
class PromptValidationResponse(BaseModel):
input_variables: list
#object return for tweak call
# object return for tweak call
frontend_node: FrontendNodeRequest | object

View file

@ -43,7 +43,9 @@ def add_user(
db.refresh(new_user)
except IntegrityError as e:
db.rollback()
raise HTTPException(status_code=400, detail="This username is unavailable.") from e
raise HTTPException(
status_code=400, detail="This username is unavailable."
) from e
return new_user