Feat: version 0.21.1 (#10718)

### What problem does this PR solve?

Update version, and remove '_canvas' suffix in agent_category.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Lynn
2025-10-22 19:03:02 +08:00
committed by GitHub
parent 4910146149
commit 1bad24e3ab
6 changed files with 25 additions and 37 deletions

View File

@ -32,6 +32,7 @@ from api.utils.crypt import decrypt
from api.utils import (
current_timestamp,
datetime_format,
get_format_time,
get_uuid,
)
from api.utils.api_utils import (
@ -131,6 +132,7 @@ def login_admin(email: str, password: str):
login_user(user)
user.update_time = (current_timestamp(),)
user.update_date = (datetime_format(datetime.now()),)
user.last_login_time = get_format_time()
user.save()
msg = "Welcome back!"
return construct_response(data=resp, auth=user.get_id(), message=msg)