From 49bdd0ddfc3f4dbeddb6a98893a2c4e10a09817c Mon Sep 17 00:00:00 2001 From: Blondel Hector <hector.blondel@student-cs.fr> Date: Tue, 26 Apr 2022 16:31:50 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A9changement=20du=20temps=20d'actualisation?= =?UTF-8?q?=20et=20du=20d=C3=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download_server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/download_server.py b/download_server.py index 3da632d..05de194 100644 --- a/download_server.py +++ b/download_server.py @@ -13,11 +13,11 @@ os.chdir("/mnt/usb/bleezrdata") t = time() while True : tt = time() - if tt - t > 5. : + if tt - t > 3600. : print("actualisation ...") - os.system("echo actualisation ...") - + os.system('sudo echo "\n la dernière actualisation date de : " >> history.txt') + os.system('date >> history.txt') t = tt with open("playlists.json",'r') as f : -- GitLab