From b451c3c57e6f7d08948d8c412f909216f2180bb3 Mon Sep 17 00:00:00 2001 From: Kirill Bessonov Date: Wed, 4 Sep 2024 03:06:54 -0400 Subject: [PATCH] Databases init more transparent --- sistr/sistr_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sistr/sistr_cmd.py b/sistr/sistr_cmd.py index 70c09ae..36265fc 100644 --- a/sistr/sistr_cmd.py +++ b/sistr/sistr_cmd.py @@ -242,7 +242,8 @@ def setup_sistr_dbs(): logging.error('Downloading databases failed, please check your internet connection and retry') sys.exit(-1) else: - logging.info(f'Downloading databases successful installed at {os.path.abspath(resource_filename('sistr', 'data/'))}') + logging.info(f"Downloading databases successful installed at {os.path.abspath(resource_filename('sistr', 'data/'))}") + logging.info(f"{os.listdir(os.path.abspath(resource_filename('sistr', 'data/')))}") f = open(resource_filename('sistr', 'dbstatus.txt'),'w') f.write("DB downloaded on : {} from {}".format(datetime.today().strftime('%Y-%m-%d'),SISTR_DB_URL)) f.close()