From 4c86ba10e454af35c7a34303457f74a1c2779d2c Mon Sep 17 00:00:00 2001 From: Dev PC Date: Tue, 5 Aug 2025 13:44:53 +0300 Subject: [PATCH] debug12 --- call_handler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/call_handler.py b/call_handler.py index 2476cda..aeb066d 100644 --- a/call_handler.py +++ b/call_handler.py @@ -348,7 +348,11 @@ class CallHandler: with wave.open(filename, "rb") as wav_file: return wav_file.getnframes() / wav_file.getframerate() - directory = f"/var/spool/asterisk/monitor/{datetime.now().year}/{datetime.now().month}/{datetime.now().day}" + mounth = f"{datetime.now().month:02d}" + day = f"{datetime.now().day:02d}" + directory = ( + f"/var/spool/asterisk/monitor/{datetime.now().year}/{mounth}/{day}" + ) tree = {} if config.DEBUG: logging.info(f"Scanning directory: {directory}")