Compare commits

..

No commits in common. "master" and "1.3.7" have entirely different histories.

3 changed files with 2 additions and 12 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.3.8"
current_version = "1.3.7"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.8
1.3.7

View File

@ -138,16 +138,6 @@ def validate_account() -> Tuple[Response, int]:
200,
)
# Check if account is expired
exp_date_str = result["data"]["user_info"]["exp_date"]
if exp_date_str:
from datetime import datetime, timezone
exp_date = datetime.fromtimestamp(int(exp_date_str), tz=timezone.utc)
current_date = datetime.now(timezone.utc)
if current_date > exp_date:
return jsonify({"message": "Account is expired", "data": result}), 401
return jsonify({"message": "Account is valid", "data": result}), 200
else:
return jsonify({"message": "Account is invalid"}), 401