From e43911aeb229b44d660f6cb211685055f92e682d Mon Sep 17 00:00:00 2001 From: Kirill Bessonov Date: Wed, 4 Sep 2024 03:13:21 -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 36265fc..7a397b9 100644 --- a/sistr/sistr_cmd.py +++ b/sistr/sistr_cmd.py @@ -243,10 +243,11 @@ def setup_sistr_dbs(): sys.exit(-1) else: 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)) + logging.info(f"{f.name}") f.close() + extract(tmp_file, resource_filename('sistr', '')) os.remove(tmp_file)