Compare commits
No commits in common. "master" and "1.3.7" have entirely different histories.
@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.3.8"
|
current_version = "1.3.7"
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
@ -138,16 +138,6 @@ def validate_account() -> Tuple[Response, int]:
|
|||||||
200,
|
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
|
return jsonify({"message": "Account is valid", "data": result}), 200
|
||||||
else:
|
else:
|
||||||
return jsonify({"message": "Account is invalid"}), 401
|
return jsonify({"message": "Account is invalid"}), 401
|
||||||
|
Loading…
x
Reference in New Issue
Block a user