Skip to content

Commit

Permalink
Databases init more transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
kbessonov1984 committed Sep 4, 2024
1 parent b451c3c commit e43911a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sistr/sistr_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e43911a

Please sign in to comment.