Updated progress bar message

This commit is contained in:
Dimitris Zlatanidis 2022-05-29 18:09:36 +03:00
parent 79f4355913
commit 7acb3587e0

View file

@ -72,7 +72,7 @@ class Database:
sbo_file = self.open_file(f"{self.lib_path}sbo_repo/SLACKBUILDS.TXT")
bar = Bar("Database sbo creating", max=len(sbo_file),
bar = Bar("Creating sbo database", max=len(sbo_file),
suffix="%(percent)d%% - %(eta)ds")
cache = [] # init cache
@ -93,7 +93,7 @@ class Database:
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""".format(
self.table_name), values)
self.con.commit()
cache = [] # reset cache after line
cache = [] # reset cache after 11 lines
bar.next()
bar.finish()
self.con.close()