diff --git a/app/modules/db/roxy.py b/app/modules/db/roxy.py index f23f71ff..15023a74 100644 --- a/app/modules/db/roxy.py +++ b/app/modules/db/roxy.py @@ -33,7 +33,7 @@ def get_user() -> UserName: print(str(e)) -def get_user_status() -> int: +def select_user_status() -> int: try: return UserName.get().Status except Exception: diff --git a/app/modules/roxywi/roxy.py b/app/modules/roxywi/roxy.py index f1b5f04a..9bb850ec 100644 --- a/app/modules/roxywi/roxy.py +++ b/app/modules/roxywi/roxy.py @@ -101,7 +101,7 @@ def action_service(action: str, service: str) -> str: 'restart': 'restart', } cmd = f"sudo systemctl {actions[action]} {service}" - if not roxy_sql.get_user_status(): + if not roxy_sql.select_user_status(): return 'warning: The service is disabled because you are not subscribed. Read here about subscriptions' if is_in_docker: