From 56e3e9f5f7fc6461056d20d2e38343bd63553b21 Mon Sep 17 00:00:00 2001 From: xpamych Date: Mon, 15 May 2023 22:06:28 +0300 Subject: [PATCH] 1 --- hlna.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hlna.py b/hlna.py index 9101b5b..9aca8ce 100755 --- a/hlna.py +++ b/hlna.py @@ -565,7 +565,7 @@ def switch(m, e): os.system(f"systemctl --user stop ark_{i}") os.system(f"systemctl --user disable ark_{i}") with open(f"{dir_logs}{date}.log", "a") as f: - f.write(f"[{time}] File {i} has been moved to {dir_maps_ark}\n") + f.write(f"[{t}] File {i} has been moved to {dir_maps_ark}\n") if x == 0: print(f"Карта активирована - {i}") else: @@ -583,7 +583,7 @@ def switch(m, e): os.system(f"systemctl --user enable ark_{i}") os.system(f"systemctl --user start ark_{i}") with open(f"{dir_logs}{date}.log", "a") as f: - f.write(f"[{time}] File {i} has been moved to {dir_deactivated}\n") + f.write(f"[{t}] File {i} has been moved to {dir_deactivated}\n") if x == 0: print(f"Карта деактивирована - {i}") else: @@ -800,7 +800,7 @@ dir_server_7days = f"{dir_server}/7Days/" now = datetime.datetime.now() date = now.strftime("%Y-%m-%d") -time = now.strftime("%H:%M:%S") +t = now.strftime("%H:%M:%S") create_dir(dir_server) create_dir(dir_unit) create_dir(dir_logs)