From 92b260aa87e9493ead76af8e8f09c087b1537360 Mon Sep 17 00:00:00 2001 From: xpamych Date: Tue, 16 May 2023 00:18:53 +0300 Subject: [PATCH] 1 --- hlna.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hlna.py b/hlna.py index c4dcdee..2e7da3a 100755 --- a/hlna.py +++ b/hlna.py @@ -668,9 +668,7 @@ def check_exist_servers(g): def start_stop(action, g, m, list_config=list_config): print_line("Вход в start_stop", g) """Функция изменения статусов сервера""" - if g != "ark" or "7days": - return - elif g == "ark": + if g == "ark": print_line("g_ark") check_exist_servers(g) dict_mapname = {} @@ -700,6 +698,8 @@ def start_stop(action, g, m, list_config=list_config): x = os.system(f"systemctl --user {action} 7days.service") if x == 0: print_line("Готово") + else: + return def read_yaml(list_config=list_config, flag=True, game=""):