chore: refurbish Python code by applying refurb linter rules (#8296)
This commit is contained in:
parent
c69f5b07ba
commit
40fb4d16ef
105 changed files with 220 additions and 276 deletions
|
|
@ -101,7 +101,7 @@ def _generate_account(provider: str, user_info: OAuthUserInfo):
|
|||
|
||||
if not account:
|
||||
# Create account
|
||||
account_name = user_info.name if user_info.name else "Dify"
|
||||
account_name = user_info.name or "Dify"
|
||||
account = RegisterService.register(
|
||||
email=user_info.email, name=account_name, password=None, open_id=user_info.id, provider=provider
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue