Code format.
This commit is contained in:
parent
85c4183686
commit
dfa90056a0
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ async def login():
|
||||||
user.update_date = (datetime_format(datetime.now()),)
|
user.update_date = (datetime_format(datetime.now()),)
|
||||||
user.save()
|
user.save()
|
||||||
msg = "Welcome back!"
|
msg = "Welcome back!"
|
||||||
|
|
||||||
return await construct_response(data=response_data, auth=user.get_id(), message=msg)
|
return await construct_response(data=response_data, auth=user.get_id(), message=msg)
|
||||||
else:
|
else:
|
||||||
return get_json_result(
|
return get_json_result(
|
||||||
|
|
@ -738,7 +738,7 @@ async def user_add():
|
||||||
raise Exception(f"Same email: {email_address} exists!")
|
raise Exception(f"Same email: {email_address} exists!")
|
||||||
user = users[0]
|
user = users[0]
|
||||||
login_user(user)
|
login_user(user)
|
||||||
return construct_response(
|
return await construct_response(
|
||||||
data=user.to_json(),
|
data=user.to_json(),
|
||||||
auth=user.get_id(),
|
auth=user.get_id(),
|
||||||
message=f"{nickname}, welcome aboard!",
|
message=f"{nickname}, welcome aboard!",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue