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 635f1d0 commit b451c3c
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 @@ -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()
Expand Down

0 comments on commit b451c3c

Please sign in to comment.