diff --git a/ktvmanager/lib/checker.py b/ktvmanager/lib/checker.py index 69fba50..bbdd29b 100644 --- a/ktvmanager/lib/checker.py +++ b/ktvmanager/lib/checker.py @@ -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