ints
This commit is contained in:
parent
2b601a5e44
commit
900d3c1cfe
@ -104,10 +104,10 @@ def validate_account() -> Tuple[Response, int]:
|
||||
)
|
||||
return jsonify({"message": "Account is valid and updated", "data": result}), 200
|
||||
|
||||
if result.get("data", {}).get("user_info", {}).get("max_connections") and data.get("max_connections") and result["data"]["user_info"]["max_connections"] != data.get("max_connections"):
|
||||
if int(result.get("data", {}).get("user_info", {}).get("max_connections")) and data.get("max_connections") and int(result["data"]["user_info"]["max_connections"]) != data.get("max_connections"):
|
||||
from ktvmanager.lib.database import update_max_connections
|
||||
update_max_connections(
|
||||
username, stream, result["data"]["user_info"]["max_connections"]
|
||||
username, stream, int(result["data"]["user_info"]["max_connections"])
|
||||
)
|
||||
return jsonify({"message": "Account is valid and updated", "data": result}), 200
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user