Correct grammar。

Alpha
Lan Hui 2023-04-01 16:07:59 +08:00
parent 1f150fc847
commit 688ed72473
1 changed files with 6 additions and 6 deletions

View File

@ -133,13 +133,13 @@ def user_expiry_time():
is_admin = check_is_admin() is_admin = check_is_admin()
if is_admin != "pass": if is_admin != "pass":
return is_admin return is_admin
username = request.args.get("username", "") username = request.args.get("username", "")
if not username: if not username:
return "Username can't empty" return "Username can't be empty."
user = get_user_by_username(username) user = get_user_by_username(username)
if not user: if not user:
return "User not exist" return "User does not exist."
return user.expiry_date return user.expiry_date